Skip to content

Commit

Permalink
Hide unused category vboxes in inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
passivestar committed Jun 26, 2024
1 parent 95110dd commit 025159f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/editor_inspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 025159f

Please sign in to comment.