godotengine / godot

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

Scrubbing an Animation Timeline with an animation track does not visually update the animation #93016

Open VeliaArcus opened 4 months ago

VeliaArcus commented 4 months ago

Tested versions

-Reproducible in Version 4.2.1 Stable

System information

Godot v4.2.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1650 (NVIDIA; 31.0.15.3623) - Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (8 Threads)

Issue description

I have a Sprite 3D node with an animation player, in which all the animations change the 'frame' value to progress through the sprite sheet.

I have a second animation player which I use for cutscenes. I use an animation track to control the Sprite's animation. When the animation is played, the editor visually updates just fine. However when I manually scrub through the animation, the Sprite retains the last frame that was played until the play button is pressed again.

https://github.com/godotengine/godot/assets/172264464/09f218b8-c54c-4e22-b4fb-94d7a6aecda6

I don't believe this is intentional behavior, as every other track value seems to update visually.

Steps to reproduce

  1. Create a Sprite3D node with a spritesheet texture. Set the HFrames and VFrames value accordingly.
  2. Create an animation player node as a child of the Sprite3D.
  3. Create an animation which increments the 'Frames' property of the Sprite3D.
  4. Create a second animation player, as a sibling to the Sprite3D.
  5. Create an animation of the second animation player, with an animation track linking to the first animation player.
  6. Scrub through the timeline and observe that the animation does not update visually.

Minimal reproduction project (MRP)

MRP.zip

TheSofox commented 3 weeks ago

Unable to reproduce on v4.4.dev.custom_build [a0d1ba4a3]. Sprite animates on scrub. It seemed to work on some earlier versions I tried too. Could you check whether you still have the problem on your end?

AnimScrub

sim-kaart commented 1 week ago

It (also) happens when setting the texture in the animation player track. The texture does not update in the visual editor nor in the animation player timeline frame thumbnails. (v4.3)