mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fixed a list to string bug
This commit is contained in:
parent
beb9eb025b
commit
8833f3ea92
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user