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:
parent
f0503930df
commit
10f1fbf589
@ -685,7 +685,6 @@ impl ActiveAnimation {
|
|||||||
#[reflect(Component, Default, Clone)]
|
#[reflect(Component, Default, Clone)]
|
||||||
pub struct AnimationPlayer {
|
pub struct AnimationPlayer {
|
||||||
active_animations: HashMap<AnimationNodeIndex, ActiveAnimation>,
|
active_animations: HashMap<AnimationNodeIndex, ActiveAnimation>,
|
||||||
blend_weights: HashMap<AnimationNodeIndex, f32>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is needed since `#[derive(Clone)]` does not generate optimized `clone_from`.
|
// This is needed since `#[derive(Clone)]` does not generate optimized `clone_from`.
|
||||||
@ -693,13 +692,11 @@ impl Clone for AnimationPlayer {
|
|||||||
fn clone(&self) -> Self {
|
fn clone(&self) -> Self {
|
||||||
Self {
|
Self {
|
||||||
active_animations: self.active_animations.clone(),
|
active_animations: self.active_animations.clone(),
|
||||||
blend_weights: self.blend_weights.clone(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn clone_from(&mut self, source: &Self) {
|
fn clone_from(&mut self, source: &Self) {
|
||||||
self.active_animations.clone_from(&source.active_animations);
|
self.active_animations.clone_from(&source.active_animations);
|
||||||
self.blend_weights.clone_from(&source.blend_weights);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user