mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
Fix error with AnimControlInterval
This commit is contained in:
parent
672a191d2a
commit
5413a267ba
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user