Skip to content
Permalink
Browse files

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
  • Loading branch information
rdb committed Jan 22, 2020
1 parent e5b7760 commit bd3dd63cbeb23dd7e137f8e085bdc12aa8fd92db
Showing with 1 addition and 1 deletion.
  1. +1 −1 direct/src/actor/Actor.py
@@ -2281,7 +2281,7 @@ def unloadAnims(self, anims=None, partName=None, lodName=None):
# 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


0 comments on commit bd3dd63

Please sign in to comment.
You can’t perform that action at this time.