From 70036d8484dea14e031bccaa19063a4bb661a870 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Tue, 25 Jun 2019 20:36:26 -0300 Subject: Fix certain items not appearing in search tree when a feature profile is set --- editor/editor_help_search.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3