summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-14 10:59:59 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-14 10:59:59 +0100
commit28258dfc48b2afaeb394c734e924a076ecfc19ad (patch)
treeeef6d5399cb80066a6014937e5c2202c2442c67a
parent1133c16447c7cb1f6ad93ac6e6ebfd7f61bf7486 (diff)
parentb2f62658a26dd8beb9298a2dc30ea38a96c61fcd (diff)
downloadredot-engine-28258dfc48b2afaeb394c734e924a076ecfc19ad.tar.gz
Merge pull request #88318 from dalexeev/editor-fix-skip-categories
Editor: Fix skipping normal category followed by custom one
-rw-r--r--editor/editor_inspector.cpp4
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;
}