diff options
author | George Marques <george@gmarqu.es> | 2018-01-21 15:43:27 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-21 15:43:27 -0200 |
commit | a695510674dd59625598d05491e5908d0199dda5 (patch) | |
tree | 4dc301025f80ae951e806b14995da4fa8582926a | |
parent | fa569210f5ef316177724169a42d2b82f4ab03d9 (diff) | |
parent | 9fba9e5465c2fed6117e7fe5904f1e6da01f8858 (diff) |
Merge pull request #15916 from touilleMan/disable-pluginscritp-in-dialog-box
Hide only PluginScript in dialog box
-rw-r--r-- | editor/create_dialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index d26bdad899..48ceb82dc3 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -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 |