From 3eae8590ccb6ce13c80277e8fbeb0f51645b3292 Mon Sep 17 00:00:00 2001 From: DAA <42379074+DaAlbrecht@users.noreply.github.com> Date: Thu, 26 Dec 2024 23:20:08 +0100 Subject: [PATCH] Make animate_targets run before inherit_weights (#16981) # Objective ensure that `animate_targets` runs **before** `bevy_render::mesh::inherit_weights` to address the one-frame delay Fixes #16554 ## Solution switch ordering constraints from `after` to `before` ## Testing ran bevy_animation tests and the animated_fox example on MacOS --- crates/bevy_animation/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index 0403344791..f1bd8c317e 100644 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -1262,7 +1262,7 @@ impl Plugin for AnimationPlugin { // `PostUpdate`. For now, we just disable ambiguity testing // for this system. animate_targets - .after(bevy_render::mesh::inherit_weights) + .before(bevy_render::mesh::inherit_weights) .ambiguous_with_all(), trigger_untargeted_animation_events, expire_completed_transitions,