Ensure animations reach last frame
This commit is contained in:
parent
ac8805246d
commit
c58bb3549f
@ -75,6 +75,10 @@ class Animation(object):
|
||||
start = self.start
|
||||
change = self.end - self.start
|
||||
|
||||
if time == duration:
|
||||
# last frame
|
||||
frame = self.end
|
||||
else:
|
||||
if easing == EASE_OUT_EXPO:
|
||||
frame = change * (-pow(2, -10 * time/duration) + 1) + start;
|
||||
elif easing == EASE_IN_EXPO:
|
||||
|
Loading…
Reference in New Issue
Block a user