Merge pull request #88318 from dalexeev/editor-fix-skip-categories
Editor: Fix skipping normal category followed by custom one
This commit is contained in:
commit
28258dfc48
@ -2892,7 +2892,9 @@ void EditorInspector::update_tree() {
|
|||||||
(!filter.is_empty() || !restrict_to_basic || (N->get().usage & PROPERTY_USAGE_EDITOR_BASIC_SETTING))) {
|
(!filter.is_empty() || !restrict_to_basic || (N->get().usage & PROPERTY_USAGE_EDITOR_BASIC_SETTING))) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (N->get().usage & PROPERTY_USAGE_CATEGORY) {
|
// Treat custom categories as second-level ones. Do not skip a normal category if it is followed by a custom one.
|
||||||
|
// Skip in the other 3 cases (normal -> normal, custom -> custom, custom -> normal).
|
||||||
|
if ((N->get().usage & PROPERTY_USAGE_CATEGORY) && (p.hint_string.is_empty() || !N->get().hint_string.is_empty())) {
|
||||||
valid = false;
|
valid = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user