From 025159f57eaf0b88af8987ff85b831d65b0a1678 Mon Sep 17 00:00:00 2001 From: passivestar <60579014+passivestar@users.noreply.github.com> Date: Wed, 26 Jun 2024 13:51:05 +0400 Subject: [PATCH] Hide unused category vboxes in inspector --- editor/editor_inspector.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 6c26231a4bb6..db77ad1a149d 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -3133,6 +3133,7 @@ void EditorInspector::update_tree() { // Recreate the category vbox if it was reset. if (category_vbox == nullptr) { category_vbox = memnew(VBoxContainer); + category_vbox->hide(); main_vbox->add_child(category_vbox); } @@ -3205,6 +3206,7 @@ void EditorInspector::update_tree() { // If we did not find a section to add the property to, add it to the category vbox instead (the category vbox handles margins correctly). if (current_vbox == main_vbox) { + category_vbox->show(); current_vbox = category_vbox; }