summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-11-06 11:06:50 +0100
committerGitHub <noreply@github.com>2022-11-06 11:06:50 +0100
commit701019bbfdf354d5888c33b5379a68eec8df253f (patch)
treeeaff145ae61da6858cd8b55d5b228ad5bbd49a8f
parent13f1d8096032bf572d5071c5bf9f61de0a055fed (diff)
parent6f80ffedddac52199ebbbaff170d7b5ac74c7086 (diff)
Merge pull request #65829 from KoBeWi/custom_path_type
Fix extending scripts by path
-rw-r--r--editor/script_create_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp
index cc09c3a432..14bb86acbc 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);