mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 12:12:10 -04:00
fixes a crash on the actor subpart
This commit is contained in:
parent
b4238d94b7
commit
074afb48f5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user