summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-05-27 02:23:24 +0200
committerkobewi <kobewi4e@gmail.com>2022-05-28 01:25:23 +0200
commit1a9635cc5708d68e81506575756658f42a5ce6a4 (patch)
treeb66f22f3fabff6c9813ecd85bf3a94e7986a2a75
parent2e8862887c07708ea0d4cb015902c3001ea6f495 (diff)
Hide redundant categories from project settings
-rw-r--r--editor/editor_sectioned_inspector.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_sectioned_inspector.cpp b/editor/editor_sectioned_inspector.cpp
index 801a1a4641..b7073665a8 100644
--- a/editor/editor_sectioned_inspector.cpp
+++ b/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;
}