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:
aecsocket 2024-08-25 14:44:52 +01:00 committed by GitHub
parent 0070bdccd8
commit eb6e97c18e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.