Remove unused variable AnimationPlayer::blend_weights. (#18560)

This variable was cruelly abandoned in #15589.

Seems fairly safe to remove as it's private. I'm assuming something
could have used it via reflection, but that seems unlikely

## Testing

```
cargo run --example animated_mesh
cargo run --example animation_graph
```
This commit is contained in:
Greeble 2025-03-26 17:42:54 +00:00 committed by GitHub
parent f0503930df
commit 10f1fbf589
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -685,7 +685,6 @@ impl ActiveAnimation {
#[reflect(Component, Default, Clone)]
pub struct AnimationPlayer {
active_animations: HashMap<AnimationNodeIndex, ActiveAnimation>,
blend_weights: HashMap<AnimationNodeIndex, f32>,
}
// This is needed since `#[derive(Clone)]` does not generate optimized `clone_from`.
@ -693,13 +692,11 @@ impl Clone for AnimationPlayer {
fn clone(&self) -> Self {
Self {
active_animations: self.active_animations.clone(),
blend_weights: self.blend_weights.clone(),
}
}
fn clone_from(&mut self, source: &Self) {
self.active_animations.clone_from(&source.active_animations);
self.blend_weights.clone_from(&source.blend_weights);
}
}