diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-06-12 22:45:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-12 22:45:47 +0200 |
commit | d1a88cb8955a88e810e783e239378cedfc314555 (patch) | |
tree | 9577c4bd223f54339dab465c8a45f18a4ef7fea1 /editor/create_dialog.cpp | |
parent | 3b53db750a0034fd939936d1729d90676896024e (diff) | |
parent | c22dcca866863e5711eaad9c592bc8c99ce98821 (diff) |
Merge pull request #29716 from YeldhamDev/create_node_error_spam
Fix error spam in create dialog when searching for nodes with some disabled
Diffstat (limited to 'editor/create_dialog.cpp')
-rw-r--r-- | editor/create_dialog.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index 604a050fcd..aab8cf7d0b 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -246,13 +246,14 @@ bool CreateDialog::_is_class_disabled_by_feature_profile(const StringName &p_cla if (profile->is_class_disabled(class_name)) { return true; } - class_name = ClassDB::get_parent_class(class_name); + class_name = ClassDB::get_parent_class_nocheck(class_name); } return false; } void CreateDialog::select_type(const String &p_type) { + TreeItem *to_select; if (search_options_types.has(p_type)) { to_select = search_options_types[p_type]; @@ -279,10 +280,6 @@ void CreateDialog::_update_search() { favorite->set_disabled(true); help_bit->set_text(""); - /* - TreeItem *root = search_options->create_item(); - _parse_fs(EditorFileSystem::get_singleton()->get_filesystem()); -*/ search_options_types.clear(); |