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
This commit is contained in:
DAA 2024-12-26 23:20:08 +01:00 committed by GitHub
parent 1675d68366
commit 3eae8590cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,