animation: Fix restarted() Spring using old from/to
Browse files at this commitba933773ab1c2fb9e648676ed1797d4e67545da7Parent: f1cca1a1 changed file +2 -2
- src/animation/mod.rs +2 -2
src/animation/mod.rsmodified+2 -2
| @@ -123,8 +123,8 @@ impl Animation { | |||
| 123 | ), | 123 | ), |
| 124 | Kind::Spring(spring) => { | 124 | Kind::Spring(spring) => { |
| 125 | let spring = Spring { | 125 | let spring = Spring { |
| 126 | - from: self.from, | 126 | + from, |
| 127 | - to: self.to, | 127 | + to, |
| 128 | initial_velocity: self.initial_velocity, | 128 | initial_velocity: self.initial_velocity, |
| 129 | params: spring.params, | 129 | params: spring.params, |
| 130 | }; | 130 | }; |