From 2e99891be269140d64f373df46313bc296e0b914 Mon Sep 17 00:00:00 2001 From: Logan Detrick Date: Fri, 14 Nov 2025 17:49:55 -0800 Subject: [PATCH] Fix bottom panel not being able to resize on startup --- editor/gui/editor_bottom_panel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editor/gui/editor_bottom_panel.cpp b/editor/gui/editor_bottom_panel.cpp index 2b2dec7ab12..1e070cbd81c 100644 --- a/editor/gui/editor_bottom_panel.cpp +++ b/editor/gui/editor_bottom_panel.cpp @@ -52,8 +52,8 @@ void EditorBottomPanel::_notification(int p_what) { } void EditorBottomPanel::_on_tab_changed(int p_idx) { - callable_mp(this, &EditorBottomPanel::_update_center_split_offset).call_deferred(); - callable_mp(this, &EditorBottomPanel::_repaint).call_deferred(); + _update_center_split_offset(); + _repaint(); } void EditorBottomPanel::_theme_changed() { @@ -90,7 +90,7 @@ int EditorBottomPanel::get_bottom_panel_offset() { void EditorBottomPanel::_repaint() { bool panel_collapsed = get_current_tab() == -1; - if (panel_collapsed == (get_previous_tab() == -1)) { + if (!panel_collapsed && (get_previous_tab() != -1)) { return; }