Merge pull request #71393 from Chaosus/fix_template_classname
This commit is contained in:
commit
60d031777b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue