Skip to content

Commit bd3dd63

Browse files
committed
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 panda3d#853
1 parent e5b7760 commit bd3dd63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

direct/src/actor/Actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2281,7 +2281,7 @@ def unloadAnims(self, anims=None, partName=None, lodName=None):
22812281
# our handle on them go. This is especially
22822282
# important if the anim control was blending
22832283
# animations.
2284-
animDef.animControl.getPart().clearControlEffects()
2284+
animDef.animControl.getPart().setControlEffect(animDef.animControl, 0.0)
22852285
animDef.animControl = None
22862286

22872287

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy