Selaa lähdekoodia

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

(cherry picked from commit 1a52c0c54384349e6c441a8a99dd09e8fd0129df)
Tom Coxon 3 vuotta sitten
vanhempi
commit
ba27e16275
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      scene/resources/animation.cpp

+ 1 - 1
scene/resources/animation.cpp

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