Merge pull request #30126 from qarmin/remove_unnecessary_code

Remove unnecessary code and add some error explanations
This commit is contained in:
Rémi Verschelde
2019-07-01 14:32:04 +02:00
committed by GitHub
48 changed files with 149 additions and 187 deletions

View File

@ -329,8 +329,9 @@ void CreateDialog::_update_search() {
if (cpp_type && !ClassDB::can_instance(type))
continue; // can't create what can't be instanced
bool skip = false;
if (cpp_type) {
bool skip = false;
for (Set<StringName>::Element *E = type_blacklist.front(); E && !skip; E = E->next()) {
if (ClassDB::is_parent_class(type, E->get()))
skip = true;