allow play(anim, fromFrame=x)

This commit is contained in:
David Rose 2003-11-11 18:34:23 +00:00
parent 0977ee5e69
commit 481f53093f

View File

@ -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):