From 431ecc206150ae177a0af30d44c344543057d0ed Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Fri, 19 Jan 2018 09:55:52 +0100 Subject: [PATCH] Hide Script nodes in dialog box to prevent crash with pluginscript --- editor/create_dialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index 2dfb01826a2..d26bdad8993 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -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