mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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()
|
control.play()
|
||||||
else:
|
else:
|
||||||
for control in self.getAnimControls(animName, partName):
|
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,
|
def loop(self, animName, restart=1, partName=None,
|
||||||
fromFrame=None, toFrame=None):
|
fromFrame=None, toFrame=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user