Skip to content

Commit c2f71f8

Browse files
DaAlbrechtmockersf
authored andcommitted
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
1 parent 6138575 commit c2f71f8

File tree

1 file changed

+1
-1
lines changed
  • crates/bevy_animation/src

1 file changed

+1
-1
lines changed

crates/bevy_animation/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ impl Plugin for AnimationPlugin {
12641264
// `PostUpdate`. For now, we just disable ambiguity testing
12651265
// for this system.
12661266
animate_targets
1267-
.after(bevy_render::mesh::inherit_weights)
1267+
.before(bevy_render::mesh::inherit_weights)
12681268
.ambiguous_with_all(),
12691269
trigger_untargeted_animation_events,
12701270
expire_completed_transitions,

0 commit comments

Comments
 (0)