diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-01-19 10:19:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-19 10:19:13 +0100 |
commit | a15f60d212408aa81735307ad37c7dd5c667b07d (patch) | |
tree | f1022a3fcb757e2e2e58937dfab8d446ae2684bf | |
parent | fe2932a969cdc0483c31c12c1f8bfd5868401da8 (diff) | |
parent | 431ecc206150ae177a0af30d44c344543057d0ed (diff) |
Merge pull request #15863 from touilleMan/fix-pluginscript-crash-in-dialog-box
Hide Script nodes in dialog box to prevent crash with pluginscript
-rw-r--r-- | editor/create_dialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index 2dfb01826a..d26bdad899 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 |