diff options
author | Yuri Rubinsky <chaosus89@gmail.com> | 2023-01-14 16:58:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-14 16:58:49 +0300 |
commit | 60d031777b2a922cba03210181c9ba7ad3a6f3ab (patch) | |
tree | de82497cb288a73a97add45ba81deefb6ceb0c63 /modules | |
parent | ac104a69b89409e7a8c0956f4e3e0b3bfa57c4c7 (diff) | |
parent | 9bd5ef18367d673f0f8379e81480f9449455d1bc (diff) |
Merge pull request #71393 from Chaosus/fix_template_classname
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 0a1ae46927..397c43b14b 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -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; |