Remove blending feature Default Blend Time
from AnimationPlayer
#5952
Labels
Milestone
Default Blend Time
from AnimationPlayer
#5952
Describe the project you are working on
Stabilization for Godot animation features
Describe the problem or limitation you are having in your project
See also
I have tried to apply the same blending algorithm as AnimationTree to AnimationPlayer, but have encountered some problems.
First, the new AnimationTree blending algorithm has a reference value as "rest" or "reset" in case the blend value does not exist. However, for example, if you set a BlendTime of 0.5s for the AnimationPlayer and play a new animation, the animation will start from the reference value. If this BlendTime is intended for something like a crossfade, it is necessary to make a special case for the first animation or make some other method.
Another problem is that this AnimationPlayer blending has the potential to blend animation with itself. Not only is it the same animation, but it is also the same animation "cache". This causes confusion about playback position and direction. Currently, this is manifesting as a problem with the animation playback button not working correctly when spamming it with BlendTime set.
1.mp4
Moreover, AnimationPlayer blending is causing code duplication with AnimationTree (currently, the old blending algorithm remains).
For the above reasons, I propose to remove blending feature from AnimationPlayer. By the way, Capture mode is not an issue here, so it can remain.
If this functionality is removed, it should not be a problem because there are already features that cover it as AnimationTree and AnimationStateMachine. And that is what should generally be used.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
It removes duplicated code and makes the behavior more stable.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
To begin with, Godot 3 and 4 animations are already incompatible.
If this enhancement will not be used often, can it be worked around with a few lines of script?
No
Is there a reason why this should be core and not an add-on in the asset library?
AnimationPlayer is in the core
The text was updated successfully, but these errors were encountered: