mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
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
This commit is contained in:
parent
e5b7760b85
commit
bd3dd63cbe
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user