You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To see the bug in this project, simply Play either the World scene or the Player scene. Press Space to swing your sword. The key called at the end of the Player's attack animation will be executed twice.
This bug seems also to exist in Godot 4 if the AnimationPlayer is part on an AnimationTree and you call the animation over AnimationNodeStateMachinePlayback.start(...) more than one time. First method call happens directly after the animation started and at the end of the animation as it should be.
Godot version
3.4.4.stable.official [419e713]
System information
MacOS 12.3.1, also tested in Windows 10
Issue description
AnimationPlayer
Call Method
is executed twice when the key is placed at the very end of the animation.Steps to reproduce
Call Method Track
When the animation is triggered, the function referenced by the key will execute twice.
Minimal reproduction project
https://github.com/Jegber/godot-animationplayer-bug (bugsquad edit: fixed the link)
(Github won't let me upload a .zip for some reason. This repository is a project which replicates the bug.)
To see the bug in this project, simply Play either the World scene or the Player scene. Press Space to swing your sword. The key called at the end of the Player's attack animation will be executed twice.
This bug has apparently been around for a while now: https://godotengine.org/qa/74053/why-is-my-animationplayer-calling-this-method-twice
The text was updated successfully, but these errors were encountered: