浏览代码

unloadAnims() always postFlatten()

David Rose 17 年之前
父节点
当前提交
f8fa118cbe
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      direct/src/actor/Actor.py

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

@@ -1997,9 +1997,9 @@ class Actor(DirectObject, NodePath):
                     else:
                         self.__commonBundleHandles[partName] = partDef.partBundleHandle
                         
-            # Since we may have merged together some bundles, all of
-            # our anims are now suspect.  Force them to reload.
-            self.unloadAnims()
+        # Since we may have merged together some bundles, all of
+        # our anims are now suspect.  Force them to reload.
+        self.unloadAnims()
         
     def unloadAnims(self, anims=None, partName=None, lodName=None):
         """unloadAnims(self, string:string{}, string='modelRoot',