Skip to content

Animation Playback Track not seeking properly in the Animation Editor #38093

Closed
@EspeuteClement

Description

Godot version:
v3.2.1.stable.official

OS/device including version:
Window 10 64bit
18362.778

Issue description:

When seeking through an Animation that has a Animation Playback Track, the Animation Playback Track is not updated accordingly if the selected animation is not a looped animation. "Play the Animation from current pos" also doesn't play the Animation Playback Track correctly if the play bar is in the middle of the animation track.

Here is a capture of the expected result that is obtained when playing the animation from the start
000024

Here is a capture of the seeking in the editor that does not play the expected animation
000026

Steps to reproduce:

  1. Create an object with an attached animation player (A)
  2. Create a simple one shot animation
  3. Create another animation player B
  4. Inside of the animation player B, create an Animation Playback Track, targeting the animation player A
  5. Add a key inside the Animation Playback Track, with the animation created in step 2 as the Animation parameter.
  6. Scroll through the timeline using the mouse, and notice that the animation from the animation player A is not updating accordingly.

Or using the included reproduction project :

  1. Open the Main.tscn scene
  2. Open the GlobalAnimationPlayer node
  3. Select the GlobalAnimationWithOneShot animation
  4. Scroll through the timeline using the mouse, and notice that the animation clip is not playing the correct animation (the Sprite should move up and down)

Minimal reproduction project:
AnimPlaybackBug.zip

Additional notes:

I have a fix available here EspeuteClement@d6f24f8 , but I didn't know if I could make a pull request for a bug that doesn't have an open issue.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions