瀏覽代碼

Merge pull request #61450 from KoBeWi/autohide

Hide redundant categories from project settings
Rémi Verschelde 3 年之前
父節點
當前提交
c1460b9413
共有 1 個文件被更改,包括 5 次插入0 次删除
  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;
 			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)) {
 		if (!filter.is_empty() && !_property_path_matches(pi.name, filter, name_style)) {
 			continue;
 			continue;
 		}
 		}