浏览代码

fix bug with models that contain animations

David Rose 19 年之前
父节点
当前提交
d39566836d
共有 1 个文件被更改,包括 3 次插入1 次删除
  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
                     # have no associated filename.  So store the
                     # 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,
                         partName="modelRoot", lodName="lodRoot"):