Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add animation transition test #18574

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

greeble-dev
Copy link
Contributor

@greeble-dev greeble-dev commented Mar 27, 2025

Objective

Add a test that reproduces #18557.

Solution

The test spawns several meshes, then every so often starts a new animation transition. Right now the meshes will occasionally snap due to #18557, but that will be fixed by #18572. The video is after the fix.

test_animation_transitions.mov

I'm a bit ambivalent about this test. It's quite limited, non-deterministic, and requires manual visual inspection. But it would have caught at least one bug, so maybe that's fine.

The name is debatable. I chose test_animation_transitions to make sure it's not confused with an example. Although it's maybe simple enough to be one - no other example shows how to manage multiple meshes playing different animations, and I suspect some people find that difficult to implement. But a real example should probably use keyboard controls instead of random timers.

@greeble-dev greeble-dev changed the title Add an animation transition test Add animation transition test Mar 27, 2025
@alice-i-cecile alice-i-cecile added A-Animation Make things move and change over time C-Testing A change that impacts how we test Bevy or how users test their apps S-Needs-Review Needs reviewer attention (from anyone!) to move forward X-Uncontroversial This work is generally agreed upon D-Straightforward Simple bug fixes and API improvements, docs, test and examples X-Contentious There are nontrivial implications that should be thought through and removed X-Uncontroversial This work is generally agreed upon labels Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Animation Make things move and change over time C-Testing A change that impacts how we test Bevy or how users test their apps D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward X-Contentious There are nontrivial implications that should be thought through
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants