fixed a list to string bug

This commit is contained in:
Asad M. Zaman 2006-10-05 17:03:55 +00:00
parent beb9eb025b
commit 8833f3ea92

View File

@ -1287,14 +1287,15 @@ class Actor(DirectObject, NodePath):
for thisPart, animDict in animDictItems: for thisPart, animDict in animDictItems:
anim = animDict.get(animName) anim = animDict.get(animName)
if anim == None: if anim == None:
# Maybe it's a subpart that hasn't been bound yet. for pName in partNameList:
subpartDef = self.__subpartDict.get(partName) # Maybe it's a subpart that hasn't been bound yet.
if subpartDef: subpartDef = self.__subpartDict.get(pName)
truePartName = subpartDef[0] if subpartDef:
anim = partDict[truePartName].get(animName) truePartName = subpartDef[0]
if anim: anim = partDict[truePartName].get(animName)
anim = [anim[0], None] if anim:
animDict[animName] = anim anim = [anim[0], None]
animDict[animName] = anim
if anim == None: if anim == None:
# anim was not present # anim was not present