Merge pull request #71393 from Chaosus/fix_template_classname

This commit is contained in:
Yuri Rubinsky 2023-01-14 16:58:49 +03:00 committed by GitHub
commit 60d031777b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ Ref<Script> GDScriptLanguage::make_template(const String &p_template, const Stri
} }
processed_template = processed_template.replace("_BASE_", p_base_class_name) processed_template = processed_template.replace("_BASE_", p_base_class_name)
.replace("_CLASS_", p_class_name) .replace("_CLASS_", p_class_name.to_pascal_case())
.replace("_TS_", _get_indentation()); .replace("_TS_", _get_indentation());
scr->set_source_code(processed_template); scr->set_source_code(processed_template);
return scr; return scr;