From 1a52c0c54384349e6c441a8a99dd09e8fd0129df Mon Sep 17 00:00:00 2001 From: Tom Coxon Date: Mon, 11 Apr 2022 17:50:40 +0100 Subject: [PATCH] Fix animation keyframes being skipped sometimes when being played backwards. #57271 --- scene/resources/animation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/resources/animation.cpp b/scene/resources/animation.cpp index c8e37413830..f2cd2bc933a 100644 --- a/scene/resources/animation.cpp +++ b/scene/resources/animation.cpp @@ -2782,7 +2782,7 @@ void Animation::_track_get_key_indices_in_range(const Vector &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); } }