Jelajahi Sumber

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

Tom Coxon 3 tahun lalu
induk
melakukan
1a52c0c543
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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);
 		}
 	}