2
0
Эх сурвалжийг харах

Ensure methods skipped by AnimationPlayer::seek are not called

(cherry picked from commit 125ae78a89d4d2b8c3ea928b806a2213e64a0adb)
Chia-Hsiang Cheng 2 жил өмнө
parent
commit
48b92610ce

+ 1 - 1
scene/animation/animation_player.cpp

@@ -779,7 +779,7 @@ void AnimationPlayer::_animation_process_animation(AnimationData *p_anim, double
 				List<int> indices;
 				List<int> indices;
 
 
 				if (p_seeked) {
 				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) {
 					if (found_key >= 0) {
 						indices.push_back(found_key);
 						indices.push_back(found_key);
 					}
 					}