mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Make ActiveAnimation::set_weight return &mut Self (#14914)
# Objective Fixes #14907. ## Solution Changes `ActiveAnimation::set_weight` to return `&mut Self`. ## Testing Simple API change, I don't think this needs explicit testing.
This commit is contained in:
parent
0070bdccd8
commit
eb6e97c18e
1 changed files with 2 additions and 1 deletions
|
@ -442,8 +442,9 @@ impl ActiveAnimation {
|
|||
}
|
||||
|
||||
/// Sets the weight of this animation.
|
||||
pub fn set_weight(&mut self, weight: f32) {
|
||||
pub fn set_weight(&mut self, weight: f32) -> &mut Self {
|
||||
self.weight = weight;
|
||||
self
|
||||
}
|
||||
|
||||
/// Pause the animation.
|
||||
|
|
Loading…
Reference in a new issue