Skip to content

Commit

Permalink
Merge pull request godotengine#30079 from YeldhamDev/help_feature_fil…
Browse files Browse the repository at this point in the history
…ter_fix

Fix certain items not appearing in search tree when a feature profile is set
  • Loading branch information
akien-mga authored Jun 26, 2019
2 parents 18b62d5 + 70036d8 commit eeee1dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion editor/editor_help_search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eeee1dc

Please sign in to comment.