account for 0 diff
This commit is contained in:
parent
b31c967ca0
commit
f31bc45947
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user