Browse Source

unloadAnims() always postFlatten()

David Rose 17 years ago
parent
commit
f8fa118cbe
1 changed files with 3 additions and 3 deletions
  1. 3 3
      direct/src/actor/Actor.py

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

@@ -1997,9 +1997,9 @@ class Actor(DirectObject, NodePath):
                     else:
                     else:
                         self.__commonBundleHandles[partName] = partDef.partBundleHandle
                         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):
     def unloadAnims(self, anims=None, partName=None, lodName=None):
         """unloadAnims(self, string:string{}, string='modelRoot',
         """unloadAnims(self, string:string{}, string='modelRoot',