mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
fixed bug with toFrame on looped animations
This commit is contained in:
parent
a0c343d591
commit
b1ae01f7db
@ -963,7 +963,10 @@ class Actor(PandaObject, NodePath):
|
||||
control.loop(restart)
|
||||
else:
|
||||
for control in self.getAnimControls(animName, partName):
|
||||
control.loop(restart, fromFrame, toFrame)
|
||||
if toFrame == None:
|
||||
control.loop(restart, fromFrame, control.getNumFrames() - 1)
|
||||
else:
|
||||
control.loop(restart, fromFrame, toFrame)
|
||||
|
||||
def pingpong(self, animName, fromFrame, toFrame, restart=1, partName=None):
|
||||
"""pingpong(self, string, fromFrame, toFrame, int=1, string=None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user