diff options
author | Tom Coxon <tom.c.coxon@gmail.com> | 2022-04-11 17:50:40 +0100 |
---|---|---|
committer | Tom Coxon <tom.c.coxon@gmail.com> | 2023-09-08 14:13:53 +0100 |
commit | 1a52c0c54384349e6c441a8a99dd09e8fd0129df (patch) | |
tree | 5de4f81f6c61b44a51cf13d92d4cd8b8d8236e15 | |
parent | 8c1817f755b63a69378774d8d0f74499f663afe2 (diff) | |
download | redot-engine-1a52c0c54384349e6c441a8a99dd09e8fd0129df.tar.gz |
Fix animation keyframes being skipped sometimes when being played backwards. #57271
-rw-r--r-- | scene/resources/animation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/animation.cpp b/scene/resources/animation.cpp index c8e3741383..f2cd2bc933 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<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); } } |