animation: Fix restarted() Spring using old from/to

This commit is contained in:
Ivan Molodetskikh
2025-04-12 12:12:40 +03:00
parent f1cca1a6ca
commit ba933773ab
+2 -2
View File
@@ -123,8 +123,8 @@ impl Animation {
), ),
Kind::Spring(spring) => { Kind::Spring(spring) => {
let spring = Spring { let spring = Spring {
from: self.from, from,
to: self.to, to,
initial_velocity: self.initial_velocity, initial_velocity: self.initial_velocity,
params: spring.params, params: spring.params,
}; };