You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Hide only PluginScript in dialog box
This commit is contained in:
@@ -255,8 +255,9 @@ void CreateDialog::_update_search() {
|
|||||||
if (base_type == "Node" && type.begins_with("Editor"))
|
if (base_type == "Node" && type.begins_with("Editor"))
|
||||||
continue; // do not show editor nodes
|
continue; // do not show editor nodes
|
||||||
|
|
||||||
if (base_type == "Resource" && ClassDB::is_parent_class(type, "Script"))
|
if (base_type == "Resource" && ClassDB::is_parent_class(type, "PluginScript"))
|
||||||
continue; // do not show script nodes
|
// PluginScript must be initialized before use, which is not possible here
|
||||||
|
continue;
|
||||||
|
|
||||||
if (!ClassDB::can_instance(type))
|
if (!ClassDB::can_instance(type))
|
||||||
continue; // can't create what can't be instanced
|
continue; // can't create what can't be instanced
|
||||||
|
|||||||
Reference in New Issue
Block a user