You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Remove unnecessary code and add some error explanations
This commit is contained in:
@@ -308,8 +308,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;
|
||||
|
||||
Reference in New Issue
Block a user