Selaa lähdekoodia

Hide unused category vboxes in inspector

passivestar 1 vuosi sitten
vanhempi
commit
025159f57e
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      editor/editor_inspector.cpp

+ 2 - 0
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;
 		}