You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix error spam in create dialog when searching for nodes with some disabled
This commit is contained in:
@@ -246,13 +246,14 @@ bool CreateDialog::_is_class_disabled_by_feature_profile(const StringName &p_cla
|
|||||||
if (profile->is_class_disabled(class_name)) {
|
if (profile->is_class_disabled(class_name)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
class_name = ClassDB::get_parent_class(class_name);
|
class_name = ClassDB::get_parent_class_nocheck(class_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateDialog::select_type(const String &p_type) {
|
void CreateDialog::select_type(const String &p_type) {
|
||||||
|
|
||||||
TreeItem *to_select;
|
TreeItem *to_select;
|
||||||
if (search_options_types.has(p_type)) {
|
if (search_options_types.has(p_type)) {
|
||||||
to_select = search_options_types[p_type];
|
to_select = search_options_types[p_type];
|
||||||
@@ -279,10 +280,6 @@ void CreateDialog::_update_search() {
|
|||||||
favorite->set_disabled(true);
|
favorite->set_disabled(true);
|
||||||
|
|
||||||
help_bit->set_text("");
|
help_bit->set_text("");
|
||||||
/*
|
|
||||||
TreeItem *root = search_options->create_item();
|
|
||||||
_parse_fs(EditorFileSystem::get_singleton()->get_filesystem());
|
|
||||||
*/
|
|
||||||
|
|
||||||
search_options_types.clear();
|
search_options_types.clear();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user