Skip to content

Animation player jumps to the first frame after animation ends, instead of staying at the last frame #10480

@idanarye

Description

@idanarye

Bevy version

Bevy v0.12.0

What you did

The problem happens when I start a non-repeating animation with the AnimationPlayer. I've created a repository that demonstrates the problem: https://github.com/idanarye/demonstrate-bevy-0.12-animation-bug

In the demos, hit the Spacebar to start the animation. If you run them in WASM you'll probably need to click on the canvas first before it starts accepting keyboard input.

What went wrong

Additional information

Note that I'm using the same glb file I used when I found the problem. I've tried to replicate it with a simpler glb file, but with no success. So it is possible that something is wrong with my glb file (which is very likely - I had to import some lost animation from an old export to the blender file, which could have messed things up), but since it works just fine in Bevy v0.11 there may be an actual regression in Bevy v0.12.

Metadata

Metadata

Assignees

Labels

A-AnimationMake things move and change over timeC-BugAn unexpected or incorrect behaviorP-RegressionFunctionality that used to work but no longer does. Add a test for this!

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions