Browse Source

fixes a crash on the actor subpart

Asad M. Zaman 19 năm trước cách đây
mục cha
commit
074afb48f5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      direct/src/actor/Actor.py

+ 1 - 1
direct/src/actor/Actor.py

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