Jelajahi Sumber

Hide redundant categories from project settings

kobewi 3 tahun lalu
induk
melakukan
1a9635cc57
1 mengubah file dengan 5 tambahan dan 0 penghapusan
  1. 5 0
      editor/editor_sectioned_inspector.cpp

+ 5 - 0
editor/editor_sectioned_inspector.cpp

@@ -250,6 +250,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.is_empty() && !_property_path_matches(pi.name, filter, name_style)) {
 			continue;
 		}