Closed misaki-eymard closed 2 weeks ago
I can not reproduce this using the latest spine-godot and Godot 4.3, build from source, nor with the latest spine-godot build of 4.3 from our website at https://esotericsoftware.com/spine-godot
https://github.com/user-attachments/assets/b36a3018-eb6d-4958-a989-4037c7f1b11f
Nevermind, I didn't read step 5. Can reproduce. Investigating.
In update_animation_state
, we check if the current TrackEntry name is the same as the animation name that was keyed in the Godot AnimationPlayer. If that's the case, we do nothing. This won't work with two keys that key the same animation.
Fix was to switch the AnimationPlayer tracks to discrete update mode, then react to name or loop track changes directly.
Description: There are times when you want the same animation to run continuously on the same track in AnimationPlayer, not in a loop, but with a slight pause like this: When this is previewed with the play button in the Animation dock, it plays correctly, but when the scene is run, only the first animation plays, and the next animation does not play correctly. Here is a video you can see the problem: https://github.com/user-attachments/assets/9124bce3-7539-4b61-9406-46de5a7ce0b6
Expected behavior: All animations on the same track play correctly, even if the same animation is set consecutively on the same track.
Steps to reproduce:
res://Animation-player/animation-player.tscn
.)AnimationPlayer
node in the Scene Dock, then select theTest
animation in the Animation Dock:shoot
animation plays four times on Track 0 and once on Trackshoot
animation is first played once on track 0, nothing happens for a while, and only after about 3 seconds theshoot
animation set on track 1 is played.The version that can reproduce this issue: Godot 4.3 (Other versions have not yet been tested.)
This issue was reported in the following thread on the forum: https://esotericsoftware.com/forum/d/27217-animationplayer-bug