mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
interval: fix ActorInterval endFrame assignment when passing duration
Fixes: #187
This commit is contained in:
parent
c043755f94
commit
3f0ab1d198
@ -83,7 +83,7 @@ class ActorInterval(Interval.Interval):
|
||||
if startTime == None:
|
||||
startTime = float(self.startFrame) / float(self.frameRate)
|
||||
endTime = startTime + duration
|
||||
self.endFrame = duration * self.frameRate
|
||||
self.endFrame = endTime * self.frameRate
|
||||
else:
|
||||
# No end frame specified. Choose the maximum of all
|
||||
# of the controls' numbers of frames.
|
||||
|
Loading…
x
Reference in New Issue
Block a user