new female face and removed headactor

This commit is contained in:
Asad M. Zaman 2006-09-01 04:44:12 +00:00
parent c293042de6
commit b74d5dab19

View File

@ -1508,15 +1508,18 @@ class Actor(DirectObject, NodePath):
for partName in partNames: for partName in partNames:
for animName in anims: for animName in anims:
# delete the anim control # delete the anim control
animControlPair = self.__animControlDict[lodName][partName][animName] try:
if animControlPair[1] != None: animControlPair = self.__animControlDict[lodName][partName][animName]
# Try to clear any control effects before we let if animControlPair[1] != None:
# our handle on them go. This is especially # Try to clear any control effects before we let
# important if the anim control was blending # our handle on them go. This is especially
# animations. # important if the anim control was blending
animControlPair[1].getPart().clearControlEffects() # animations.
del(animControlPair[1]) animControlPair[1].getPart().clearControlEffects()
animControlPair.append(None) del(animControlPair[1])
animControlPair.append(None)
except:
return
def bindAnim(self, animName, partName="modelRoot", lodName="lodRoot"): def bindAnim(self, animName, partName="modelRoot", lodName="lodRoot"):
"""bindAnim(self, string, string='modelRoot', string='lodRoot') """bindAnim(self, string, string='modelRoot', string='lodRoot')