From 4952e078e49b3714ffc49b9bfa12d606438a6598 Mon Sep 17 00:00:00 2001 From: dugramen Date: Tue, 25 Feb 2025 21:50:52 -0500 Subject: [PATCH] fix vbox separation in sections with PROPERTY_USAGE_ARRAY --- editor/editor_inspector.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 58b02ed2b8a..87a7433e8cb 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -3440,6 +3440,8 @@ void EditorInspector::update_tree() { // Recreate the category vbox if it was reset. if (category_vbox == nullptr) { category_vbox = memnew(VBoxContainer); + int separation = get_theme_constant(SNAME("v_separation"), SNAME("EditorInspector")); + category_vbox->add_theme_constant_override(SNAME("separation"), separation); category_vbox->hide(); main_vbox->add_child(category_vbox); }