Browse Source

Hide redundant categories from project settings

(cherry picked from commit 1a9635cc5708d68e81506575756658f42a5ce6a4)
kobewi 3 năm trước cách đây
mục cha
commit
309ad643a9
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      editor/editor_sectioned_inspector.cpp

+ 5 - 0
editor/editor_sectioned_inspector.cpp

@@ -260,6 +260,11 @@ void SectionedInspector::update_category_list() {
 			continue;
 		}
 
+		// Filter out unnecessary ProjectSettings sections, as they already have their dedicated tabs.
+		if (pi.name.begins_with("autoload") || pi.name.begins_with("editor_plugins") || pi.name.begins_with("shader_globals")) {
+			continue;
+		}
+
 		if (!filter.empty() && !_property_path_matches(pi.name, filter, name_style)) {
 			continue;
 		}