From 8833f3ea9232e67609bd3d67854708b690aa49bf Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Thu, 5 Oct 2006 17:03:55 +0000 Subject: [PATCH] fixed a list to string bug --- direct/src/actor/Actor.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index 486bb42c59..cd93582225 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -1287,14 +1287,15 @@ class Actor(DirectObject, NodePath): for thisPart, animDict in animDictItems: anim = animDict.get(animName) if anim == None: - # Maybe it's a subpart that hasn't been bound yet. - subpartDef = self.__subpartDict.get(partName) - if subpartDef: - truePartName = subpartDef[0] - anim = partDict[truePartName].get(animName) - if anim: - anim = [anim[0], None] - animDict[animName] = anim + for pName in partNameList: + # Maybe it's a subpart that hasn't been bound yet. + subpartDef = self.__subpartDict.get(pName) + if subpartDef: + truePartName = subpartDef[0] + anim = partDict[truePartName].get(animName) + if anim: + anim = [anim[0], None] + animDict[animName] = anim if anim == None: # anim was not present