Browse Source

Fix error with AnimControlInterval

rdb 10 years ago
parent
commit
5413a267ba
1 changed files with 3 additions and 3 deletions
  1. 3 3
      direct/src/interval/AnimControlInterval.py

+ 3 - 3
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