Skip to content

Commit

Permalink
actor: only remove control effects of given animations in unloadAnims
Browse files Browse the repository at this point in the history
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 bd3dd63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion direct/src/actor/Actor.py
Expand Up @@ -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


Expand Down

0 comments on commit bd3dd63

Please sign in to comment.