Browse Source

whoops, forgot to save animModel

David Rose 19 years ago
parent
commit
8768f41974
1 changed files with 2 additions and 0 deletions
  1. 2 0
      direct/src/actor/Actor.py

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

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