Fix error with AnimControlInterval

This commit is contained in:
rdb 2015-07-27 12:48:45 +02:00
parent 672a191d2a
commit 5413a267ba

View File

@ -152,7 +152,7 @@ class AnimControlInterval(Interval.Interval):
else:
frame = max(min(absFrame, numFrames - 1), 0)
self.controls.poseAll(frame)
self.controls.poseAll(int(frame))
self.state = CInterval.SStarted
self.currT = t
@ -168,9 +168,9 @@ class AnimControlInterval(Interval.Interval):
# a hitch in the animation when it plays back-to-back with
# the next cycle.
if self.reverse:
self.controls.poseAll(self.startFrame)
self.controls.poseAll(int(self.startFrame))
else:
self.controls.poseAll(self.endFrame)
self.controls.poseAll(int(self.endFrame))
else:
# Otherwise, the user-specified duration determines which