From b31a2544fb2e606bacd2eb8d3592dde4776611b4 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Sat, 15 Mar 2025 12:24:35 -0300 Subject: [PATCH] Fix wrong height for top editors in the inspector (cherry picked from commit 778a14a4d7d1781f8fe41a06760418764c19877a) --- editor/editor_inspector.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index dd0030d134f..939eeca6976 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -3132,13 +3132,14 @@ void EditorInspector::update_tree() { Color sscolor = get_theme_color(SNAME("prop_subsection"), EditorStringName(Editor)); bool sub_inspectors_enabled = EDITOR_GET("interface/inspector/open_resources_in_current_inspector"); - // Get the lists of editors to add the beginning. - for (Ref &ped : valid_plugins) { - ped->parse_begin(object); - _parse_added_editors(begin_vbox, nullptr, ped); - } - if (begin_vbox->get_child_count()) { + if (!valid_plugins.is_empty()) { begin_vbox->show(); + + // Get the lists of editors to add the beginning. + for (Ref &ped : valid_plugins) { + ped->parse_begin(object); + _parse_added_editors(begin_vbox, nullptr, ped); + } } StringName doc_name;