mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Make solving project setting errors easier
Show full project setting path in error messages. Force filtering for advanced settings if filter is not empty.
This commit is contained in:
@@ -2731,7 +2731,8 @@ void EditorInspector::update_tree() {
|
||||
List<PropertyInfo>::Element *N = E_property->next();
|
||||
bool valid = true;
|
||||
while (N) {
|
||||
if (!N->get().name.begins_with("metadata/_") && N->get().usage & PROPERTY_USAGE_EDITOR && (!restrict_to_basic || (N->get().usage & PROPERTY_USAGE_EDITOR_BASIC_SETTING))) {
|
||||
if (!N->get().name.begins_with("metadata/_") && N->get().usage & PROPERTY_USAGE_EDITOR &&
|
||||
(!filter.is_empty() || !restrict_to_basic || (N->get().usage & PROPERTY_USAGE_EDITOR_BASIC_SETTING))) {
|
||||
break;
|
||||
}
|
||||
if (N->get().usage & PROPERTY_USAGE_CATEGORY) {
|
||||
@@ -2821,7 +2822,8 @@ void EditorInspector::update_tree() {
|
||||
|
||||
continue;
|
||||
|
||||
} else if (p.name.begins_with("metadata/_") || !(p.usage & PROPERTY_USAGE_EDITOR) || _is_property_disabled_by_feature_profile(p.name) || (restrict_to_basic && !(p.usage & PROPERTY_USAGE_EDITOR_BASIC_SETTING))) {
|
||||
} else if (p.name.begins_with("metadata/_") || !(p.usage & PROPERTY_USAGE_EDITOR) || _is_property_disabled_by_feature_profile(p.name) ||
|
||||
(filter.is_empty() && restrict_to_basic && !(p.usage & PROPERTY_USAGE_EDITOR_BASIC_SETTING))) {
|
||||
// Ignore properties that are not supposed to be in the inspector.
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user