Merge pull request #30079 from YeldhamDev/help_feature_filter_fix

Fix certain items not appearing in search tree when a feature profile is set
This commit is contained in:
Rémi Verschelde 2019-06-26 07:59:25 +02:00 committed by GitHub
commit eeee1dc73e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);