From 48b92610ce47dd3d0a7adabb34161420b6f631e4 Mon Sep 17 00:00:00 2001 From: Chia-Hsiang Cheng <88014292+garychia@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:35:54 +0800 Subject: [PATCH] Ensure methods skipped by AnimationPlayer::seek are not called (cherry picked from commit 125ae78a89d4d2b8c3ea928b806a2213e64a0adb) --- scene/animation/animation_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index 0eb832a2ddb..9fa3f6871d4 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -779,7 +779,7 @@ void AnimationPlayer::_animation_process_animation(AnimationData *p_anim, double List indices; if (p_seeked) { - int found_key = a->track_find_key(i, p_time); + int found_key = a->track_find_key(i, p_time, Animation::FIND_MODE_EXACT); if (found_key >= 0) { indices.push_back(found_key); }