From b74d5dab19646bf1f06a9aa68fc424aaa17d1f45 Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Fri, 1 Sep 2006 04:44:12 +0000 Subject: [PATCH] new female face and removed headactor --- direct/src/actor/Actor.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index 79f14ee2b3..fec82eb84e 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -1508,15 +1508,18 @@ class Actor(DirectObject, NodePath): for partName in partNames: for animName in anims: # delete the anim control - animControlPair = self.__animControlDict[lodName][partName][animName] - if animControlPair[1] != None: - # Try to clear any control effects before we let - # our handle on them go. This is especially - # important if the anim control was blending - # animations. - animControlPair[1].getPart().clearControlEffects() - del(animControlPair[1]) - animControlPair.append(None) + try: + animControlPair = self.__animControlDict[lodName][partName][animName] + if animControlPair[1] != None: + # Try to clear any control effects before we let + # our handle on them go. This is especially + # important if the anim control was blending + # animations. + animControlPair[1].getPart().clearControlEffects() + del(animControlPair[1]) + animControlPair.append(None) + except: + return def bindAnim(self, animName, partName="modelRoot", lodName="lodRoot"): """bindAnim(self, string, string='modelRoot', string='lodRoot')