瀏覽代碼

whoops, forgot to save animModel

David Rose 19 年之前
父節點
當前提交
8768f41974
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      direct/src/actor/Actor.py

+ 2 - 0
direct/src/actor/Actor.py

@@ -1681,6 +1681,7 @@ class Actor(DirectObject, NodePath):
                             # animations.
                             animDef.animControl.getPart().clearControlEffects()
                             animDef.animControl = None
+                            animDef.animModel = None
                     except:
                         return
 
@@ -1769,6 +1770,7 @@ class Actor(DirectObject, NodePath):
         else:
             # store the animControl
             anim.animControl = animControl
+            anim.animModel = animNode.node()
             assert Actor.notify.debug("binding anim: %s to part: %s, lod: %s" %
                                       (animName, partName, lodName))
         return animControl