summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2019-06-25 20:36:26 -0300
committerMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2019-06-25 20:36:26 -0300
commit70036d8484dea14e031bccaa19063a4bb661a870 (patch)
tree80d625d81872d110e749c6fb76212d879e5edfb9
parentca084db4aa6d5da8f34fc889d70f1b8e46990b82 (diff)
Fix certain items not appearing in search tree when a feature profile is set
-rw-r--r--editor/editor_help_search.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/editor_help_search.cpp b/editor/editor_help_search.cpp
index 55ab38ba6c..4ec24c76f2 100644
--- a/editor/editor_help_search.cpp
+++ b/editor/editor_help_search.cpp
@@ -260,7 +260,11 @@ bool EditorHelpSearch::Runner::_is_class_disabled_by_feature_profile(const Strin
StringName class_name = p_class;
while (class_name != StringName()) {
- if (!ClassDB::class_exists(class_name) || profile->is_class_disabled(class_name)) {
+ if (!ClassDB::class_exists(class_name)) {
+ return false;
+ }
+
+ if (profile->is_class_disabled(class_name)) {
return true;
}
class_name = ClassDB::get_parent_class(class_name);