Skip to content

Commit 10f1fbf

Browse files
authored
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 ```
1 parent f050393 commit 10f1fbf

File tree

1 file changed

+0
-3
lines changed
  • crates/bevy_animation/src

1 file changed

+0
-3
lines changed

crates/bevy_animation/src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -685,21 +685,18 @@ impl ActiveAnimation {
685685
#[reflect(Component, Default, Clone)]
686686
pub struct AnimationPlayer {
687687
active_animations: HashMap<AnimationNodeIndex, ActiveAnimation>,
688-
blend_weights: HashMap<AnimationNodeIndex, f32>,
689688
}
690689

691690
// This is needed since `#[derive(Clone)]` does not generate optimized `clone_from`.
692691
impl Clone for AnimationPlayer {
693692
fn clone(&self) -> Self {
694693
Self {
695694
active_animations: self.active_animations.clone(),
696-
blend_weights: self.blend_weights.clone(),
697695
}
698696
}
699697

700698
fn clone_from(&mut self, source: &Self) {
701699
self.active_animations.clone_from(&source.active_animations);
702-
self.blend_weights.clone_from(&source.blend_weights);
703700
}
704701
}
705702

0 commit comments

Comments
 (0)