From ba933773ab1c2fb9e648676ed1797d4e67545da7 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 12 Apr 2025 12:12:40 +0300 Subject: animation: Fix restarted() Spring using old from/to --- src/animation/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/animation/mod.rs b/src/animation/mod.rs index 50dfc195..b6d6b552 100644 --- a/src/animation/mod.rs +++ b/src/animation/mod.rs @@ -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, }; -- cgit