You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Merge pull request #65829 from KoBeWi/custom_path_type
Fix extending scripts by path
This commit is contained in:
@@ -373,7 +373,7 @@ void ScriptCreateDialog::_create_new() {
|
|||||||
const ScriptLanguage::ScriptTemplate sinfo = _get_current_template();
|
const ScriptLanguage::ScriptTemplate sinfo = _get_current_template();
|
||||||
|
|
||||||
String parent_class = parent_name->get_text();
|
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.
|
// 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);
|
const EditorData::CustomType *type = EditorNode::get_editor_data().get_custom_type_by_name(parent_class);
|
||||||
ERR_FAIL_NULL(type);
|
ERR_FAIL_NULL(type);
|
||||||
|
|||||||
Reference in New Issue
Block a user