1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Hide only PluginScript in dialog box

This commit is contained in:
Emmanuel Leblond
2018-01-21 00:43:57 +01:00
parent c58891ff4c
commit 9fba9e5465

View File

@@ -255,8 +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 (base_type == "Resource" && ClassDB::is_parent_class(type, "PluginScript"))
// PluginScript must be initialized before use, which is not possible here
continue;
if (!ClassDB::can_instance(type))
continue; // can't create what can't be instanced