summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-06-26 07:59:25 +0200
committerGitHub <noreply@github.com>2019-06-26 07:59:25 +0200
commiteeee1dc73e6344a5541ee323b6ae61744b3348b6 (patch)
treeb1d05d929dcfbe9032ede3253753ce4adda1df73 /editor
parent18b62d50194576f555c53ed5409b5a71fbfe5630 (diff)
parent70036d8484dea14e031bccaa19063a4bb661a870 (diff)
Merge pull request #30079 from YeldhamDev/help_feature_filter_fix
Fix certain items not appearing in search tree when a feature profile is set
Diffstat (limited to 'editor')
-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);