From 69c572304c41bc1f01ee086b60f33068349ce1cb Mon Sep 17 00:00:00 2001 From: shadow Date: Fri, 20 Mar 2026 00:04:52 +0530 Subject: [PATCH] Fix time property drag range in FPS mode for AnimKey and Markers --- editor/animation/animation_track_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/animation/animation_track_editor.cpp b/editor/animation/animation_track_editor.cpp index f24a69f013..55e4c540f9 100644 --- a/editor/animation/animation_track_editor.cpp +++ b/editor/animation/animation_track_editor.cpp @@ -8804,6 +8804,7 @@ AnimationTrackKeyEditEditor::AnimationTrackKeyEditEditor(Ref p_animat fps = 1.0 / fps; } spinner->set_value(key_ofs * fps); + spinner->set_max(animation->get_length() * fps); spinner->connect("updown_pressed", callable_mp(this, &AnimationTrackKeyEditEditor::_time_edit_spun), CONNECT_DEFERRED); } else { spinner->set_step(SECOND_DECIMAL); @@ -9979,6 +9980,7 @@ AnimationMarkerKeyEditEditor::AnimationMarkerKeyEditEditor(Ref p_anim fps = 1.0 / fps; } spinner->set_value(time * fps); + spinner->set_max(animation->get_length() * fps); spinner->connect("updown_pressed", callable_mp(this, &AnimationMarkerKeyEditEditor::_time_edit_exited), CONNECT_DEFERRED); } else { spinner->set_step(SECOND_DECIMAL);