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
					
				| @ -442,8 +442,9 @@ impl ActiveAnimation { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Sets the weight of this animation.
 |     /// 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.weight = weight; | ||||||
|  |         self | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Pause the animation.
 |     /// Pause the animation.
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 aecsocket
						aecsocket