Skip to content

Commit

Permalink
Merge pull request #93627 from passivestar/inspector-unused-vboxes
Browse files Browse the repository at this point in the history
Hide unused category vboxes in inspector
  • Loading branch information
akien-mga committed Jun 26, 2024
2 parents 6cdd303 + 025159f commit d119e49
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 @@ -3137,6 +3137,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 @@ -3209,6 +3210,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 d119e49

Please sign in to comment.