Fix GDScript script templates to use a PascalCase style for `_CLASS_`

This commit is contained in:
Yuri Rubinsky 2023-01-14 15:58:42 +03:00
parent d2d5e548c9
commit 9bd5ef1836
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)
.replace("_CLASS_", p_class_name)
.replace("_CLASS_", p_class_name.to_pascal_case())
.replace("_TS_", _get_indentation());
scr->set_source_code(processed_template);
return scr;