*** empty log message ***

This commit is contained in:
gregw 2001-06-22 20:18:24 +00:00
parent 70449ed1fb
commit 980dde51de
1 changed files with 6 additions and 4 deletions

View File

@ -463,13 +463,15 @@ class Actor(PandaObject, NodePath):
partNames.append(partName)
# for each part in list, set play rate on given or current anim
for partName in partNames:
for thisPart in partNames:
if (animName==None):
animName = self.getCurrentAnim(partName)
animControl = self.getAnimControl(animName, partName, lodName)
thisAnim = self.getCurrentAnim(thisPart)
else:
thisAnim = animName
animControl = self.getAnimControl(thisAnim, thisPart, lodName)
if (animControl != None):
animControl.setPlayRate(rate)
def getDuration(self, animName=None, partName=None):
"""getDuration(self, string, string=None)
Return duration of given anim name and given part.