fixes a crash on the actor subpart

This commit is contained in:
Asad M. Zaman 2006-10-06 02:07:40 +00:00
parent b4238d94b7
commit 074afb48f5

View File

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