diff options
author | kobewi <kobewi4e@gmail.com> | 2022-09-15 15:50:35 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-09-15 17:44:27 +0200 |
commit | 6f80ffedddac52199ebbbaff170d7b5ac74c7086 (patch) | |
tree | e051749a14cd28a71aff8d34ae7a1b6bed257cb7 /editor | |
parent | 4ba934bf3d1e697d8f332b5e8cfd694cdf49a7ba (diff) |
Fix extending scripts by path
Diffstat (limited to 'editor')
-rw-r--r-- | editor/script_create_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index f57dfe4827..e7dc69006f 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -373,7 +373,7 @@ void ScriptCreateDialog::_create_new() { const ScriptLanguage::ScriptTemplate sinfo = _get_current_template(); String parent_class = parent_name->get_text(); - if (!ClassDB::class_exists(parent_class) && !ScriptServer::is_global_class(parent_class)) { + if (!parent_name->get_text().is_quoted() && !ClassDB::class_exists(parent_class) && !ScriptServer::is_global_class(parent_class)) { // If base is a custom type, replace with script path instead. const EditorData::CustomType *type = EditorNode::get_editor_data().get_custom_type_by_name(parent_class); ERR_FAIL_NULL(type); |