summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2023-01-14 15:58:42 +0300
committerYuri Rubinsky <chaosus89@gmail.com>2023-01-14 16:21:05 +0300
commit9bd5ef18367d673f0f8379e81480f9449455d1bc (patch)
treeb080a728c1ab133c8e3f760fd1ad521008136aa6 /modules/gdscript
parentd2d5e548c9cac48a89b97ed4dd9bfc93b4528f0d (diff)
Fix GDScript script templates to use a PascalCase style for `_CLASS_`
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gdscript_editor.cpp2
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;