mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 14:42:48 +00:00
Hide Script nodes in dialog box to prevent crash with pluginscript
This commit is contained in:
parent
fe2932a969
commit
431ecc2061
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user