Fix animation keyframes being skipped sometimes when being played backwards. #57271

(cherry picked from commit 1a52c0c543)
This commit is contained in:
Tom Coxon 2022-04-11 17:50:40 +01:00 committed by Yuri Sizov
parent 3518801deb
commit ba27e16275
1 changed files with 1 additions and 1 deletions

View File

@ -2782,7 +2782,7 @@ void Animation::_track_get_key_indices_in_range(const Vector<T> &p_array, double
p_indices->push_back(i);
}
} else {
for (int i = to; i >= to; i--) {
for (int i = to; i >= from; i--) {
p_indices->push_back(i);
}
}