godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.07k stars 20.19k forks source link

AnimationPlayer can't queue the same animations #72484

Open irmozius opened 1 year ago

irmozius commented 1 year ago

Godot version

4.0 beta 8+

System information

Nobara Linux

Issue description

If an animation finishes, then is told to play again, the related AnimationPlayer will completely freeze, but only if it is trying to blend.

Steps to reproduce

  1. Run the MRP
  2. Press up to play the corresponding animation
  3. Press left while this animation is playing to queue the left one
  4. Observe that this 'queued' animation plays normally
  5. Allow the animation to stop
  6. Press up once more
  7. While the animation is playing, try to queue the same animation by pressing up again
  8. Observe that the animation freezes

Minimal reproduction project

https://github.com/irmozius/repeat-anim-glitch

TokageItLab commented 1 year ago

The blending feature of AnimationPlayer is outdated and will be remade in the future as https://github.com/godotengine/godot-proposals/issues/5972.

TokageItLab commented 1 year ago

This is due to the inability to blend identical animations; it may be possible to fix this at the same time as https://github.com/godotengine/godot/issues/70338.