mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
allow play(anim, fromFrame=x)
This commit is contained in:
parent
0977ee5e69
commit
481f53093f
@ -950,7 +950,10 @@ class Actor(PandaObject, NodePath):
|
||||
control.play()
|
||||
else:
|
||||
for control in self.getAnimControls(animName, partName):
|
||||
control.play(fromFrame, toFrame)
|
||||
if toFrame == None:
|
||||
control.play(fromFrame, control.getNumFrames() - 1)
|
||||
else:
|
||||
control.play(fromFrame, toFrame)
|
||||
|
||||
def loop(self, animName, restart=1, partName=None,
|
||||
fromFrame=None, toFrame=None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user