diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2024-02-14 11:28:53 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2024-02-14 11:28:53 +0300 |
commit | b2f62658a26dd8beb9298a2dc30ea38a96c61fcd (patch) | |
tree | 70ab92fb7b3b011705b964b98b803ea2996d391a /editor | |
parent | e5a3fd1e53ad4e6efc1fd17deded8f4ce0973d10 (diff) | |
download | redot-engine-b2f62658a26dd8beb9298a2dc30ea38a96c61fcd.tar.gz |
Editor: Fix skipping normal category followed by custom one
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_inspector.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 622822df09..4e76d40b1d 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -2892,7 +2892,9 @@ void EditorInspector::update_tree() { (!filter.is_empty() || !restrict_to_basic || (N->get().usage & PROPERTY_USAGE_EDITOR_BASIC_SETTING))) { 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; break; } |