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) => {
let spring = Spring {
from: self.from,
to: self.to,
from,
to,
initial_velocity: self.initial_velocity,
params: spring.params,
};