Merge pull request #15863 from touilleMan/fix-pluginscript-crash-in-dialog-box

Hide Script nodes in dialog box to prevent crash with pluginscript
This commit is contained in:
Rémi Verschelde 2018-01-19 10:19:13 +01:00 committed by GitHub
commit a15f60d212
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,6 +255,9 @@ void CreateDialog::_update_search() {
if (base_type == "Node" && type.begins_with("Editor"))
continue; // do not show editor nodes
if (base_type == "Resource" && ClassDB::is_parent_class(type, "Script"))
continue; // do not show script nodes
if (!ClassDB::can_instance(type))
continue; // can't create what can't be instanced