diff --git a/direct/src/interval/AnimControlInterval.py b/direct/src/interval/AnimControlInterval.py index 3e1d1259d1..f53fe22057 100755 --- a/direct/src/interval/AnimControlInterval.py +++ b/direct/src/interval/AnimControlInterval.py @@ -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