parent
531dc2f435
commit
b4315abb71
1 changed files with 1 additions and 1 deletions
|
@ -1469,7 +1469,7 @@ int Animation::_find(const Vector<K> &p_keys, float p_time) const {
|
||||||
|
|
||||||
middle = (low + high) / 2;
|
middle = (low + high) / 2;
|
||||||
|
|
||||||
if (p_time == keys[middle].time) { //match
|
if (Math::abs(p_time - keys[middle].time) < CMP_EPSILON) { //match
|
||||||
return middle;
|
return middle;
|
||||||
} else if (p_time < keys[middle].time)
|
} else if (p_time < keys[middle].time)
|
||||||
high = middle - 1; //search low end of array
|
high = middle - 1; //search low end of array
|
||||||
|
|
Loading…
Reference in a new issue