Browse Source

fix bug with models that contain animations

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

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

@@ -1588,7 +1588,9 @@ class Actor(DirectObject, NodePath):
                     # Now we've already bound the animation, but we
                     # Now we've already bound the animation, but we
                     # have no associated filename.  So store the
                     # have no associated filename.  So store the
                     # animControl, but put None in for the filename.
                     # animControl, but put None in for the filename.
-                    self.__animControlDict[lodName][partName][animName] = [None, animControl]
+                    animDef = Actor.AnimDef(None)
+                    animDef.animControl = animControl
+                    self.__animControlDict[lodName][partName][animName] = animDef
 
 
     def __prepareBundle(self, bundleNP, model,
     def __prepareBundle(self, bundleNP, model,
                         partName="modelRoot", lodName="lodRoot"):
                         partName="modelRoot", lodName="lodRoot"):