Merge pull request #81452 from tcoxon/fix_57271

Fix animation keyframes being skipped when played backwards
This commit is contained in:
Rémi Verschelde 2023-09-08 23:16:05 +02:00
commit fb4edf50d7
No known key found for this signature in database
GPG key ID: C3336907360768E1

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);
}
}