diff --git a/editor/animation/animation_track_editor.cpp b/editor/animation/animation_track_editor.cpp index fde08fc7901..03f96182c52 100644 --- a/editor/animation/animation_track_editor.cpp +++ b/editor/animation/animation_track_editor.cpp @@ -1836,8 +1836,8 @@ void AnimationTimelineEdit::update_values() { editing = true; if (use_fps && animation->get_step() > 0.0) { - length->set_value(animation->get_length() / animation->get_step()); length->set_step(FPS_DECIMAL); + length->set_value(animation->get_length() / animation->get_step()); length->set_tooltip_text(TTR("Animation length (frames)")); time_icon->set_tooltip_text(TTR("Animation length (frames)")); if (track_edit) { @@ -1845,8 +1845,8 @@ void AnimationTimelineEdit::update_values() { track_edit->editor->marker_edit->_update_key_edit(); } } else { - length->set_value(animation->get_length()); length->set_step(SECOND_DECIMAL); + length->set_value(animation->get_length()); length->set_tooltip_text(TTR("Animation length (seconds)")); time_icon->set_tooltip_text(TTR("Animation length (seconds)")); }