From bd3dd63cbeb23dd7e137f8e085bdc12aa8fd92db Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 22 Jan 2020 08:40:50 +0100 Subject: [PATCH] actor: only remove control effects of given animations in unloadAnims The previous behavior was for unloadAnims() to remove the control effects from all animations, even when only one animation was passed in, which is unintuitive behavior. Fixes #853 --- direct/src/actor/Actor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index 5b83df0d8c..6ebf01341c 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -2281,7 +2281,7 @@ class Actor(DirectObject, NodePath): # our handle on them go. This is especially # important if the anim control was blending # animations. - animDef.animControl.getPart().clearControlEffects() + animDef.animControl.getPart().setControlEffect(animDef.animControl, 0.0) animDef.animControl = None