account for 0 diff

This commit is contained in:
Andre Henriques 2023-03-15 23:07:51 +00:00
parent b31c967ca0
commit f31bc45947

View File

@ -341,7 +341,7 @@ impl Lerp for f64 {
println!("c: {} target:{} lerp: {} diff: {} move: {}", self, other, lerped, diff, change);
}
if change < 0.0000001 {
if change < 0.0000001 && diff != 0.0 {
return *other;
}