Browse Source

Merge pull request #103309 from dugramen/tileset-inspector-spacing

Fix vbox separation in sections with `PROPERTY_USAGE_ARRAY`
Rémi Verschelde 6 months ago
parent
commit
6e62cab8a8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/editor_inspector.cpp

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