From 570a6faf71f0ed7a077de210e5ef5a71fc4204da Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Wed, 3 Aug 2005 21:41:59 +0000 Subject: [PATCH] clear control effects on anim controls before deleting --- direct/src/actor/Actor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index 9aefbc63ac..3a1aaff20e 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -1320,6 +1320,11 @@ class Actor(PandaObject, NodePath): # delete the anim control animControlPair = self.__animControlDict[lodName][partName][animName] if animControlPair[1] != None: + # Try to clear any control effects before we let + # our handle on them go. This is especially + # important if the anim control was blending + # animations. + animControlPair[1].getPart().clearControlEffects() del(animControlPair[1]) animControlPair.append(None)