summaryrefslogtreecommitdiff
path: root/editor/script_create_dialog.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-08-30 14:06:28 +0200
committerGitHub <noreply@github.com>2022-08-30 14:06:28 +0200
commit0bf3f7915780f30fab4db323e843b35bf9210548 (patch)
tree14390176bc1ad83f43af8d27684e3f841565ff6e /editor/script_create_dialog.cpp
parentebe4f8d3a4a706c5eb1b7a8283883c63c131cad7 (diff)
parentd4555ef5fbf706c43faccf5fdb3f023696197727 (diff)
Merge pull request #63902 from dalexeev/string-cases
Diffstat (limited to 'editor/script_create_dialog.cpp')
-rw-r--r--editor/script_create_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp
index e09862263c..7d065b4920 100644
--- a/editor/script_create_dialog.cpp
+++ b/editor/script_create_dialog.cpp
@@ -898,7 +898,7 @@ ScriptLanguage::ScriptTemplate ScriptCreateDialog::_parse_template(const ScriptL
// Get name from file name if no name in meta information
if (script_template.name == String()) {
- script_template.name = p_filename.get_basename().replace("_", " ").capitalize();
+ script_template.name = p_filename.get_basename().capitalize();
}
return script_template;