From 074afb48f59cc2e0c41f22da9f5756f8b72589d6 Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Fri, 6 Oct 2006 02:07:40 +0000 Subject: [PATCH] fixes a crash on the actor subpart --- direct/src/actor/Actor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index 99c98a409c..d07779277d 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -1296,7 +1296,7 @@ class Actor(DirectObject, NodePath): # get the named animation only. for thisPart, animDict in animDictItems: anim = animDict.get(animName) - if anim == None: + if anim == None and partName != None: for pName in partNameList: # Maybe it's a subpart that hasn't been bound yet. subpartDef = self.__subpartDict.get(pName)