diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-08-30 14:06:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 14:06:28 +0200 |
commit | 0bf3f7915780f30fab4db323e843b35bf9210548 (patch) | |
tree | 14390176bc1ad83f43af8d27684e3f841565ff6e /editor/plugins/script_text_editor.cpp | |
parent | ebe4f8d3a4a706c5eb1b7a8283883c63c131cad7 (diff) | |
parent | d4555ef5fbf706c43faccf5fdb3f023696197727 (diff) | |
download | redot-engine-0bf3f7915780f30fab4db323e843b35bf9210548.tar.gz |
Merge pull request #63902 from dalexeev/string-cases
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 85e53011d6..8bb9452938 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -1590,7 +1590,7 @@ void ScriptTextEditor::drop_data_fw(const Point2 &p_point, const Variant &p_data } } - String variable_name = String(node->get_name()).camelcase_to_underscore(true).validate_identifier(); + String variable_name = String(node->get_name()).to_snake_case().validate_identifier(); if (use_type) { text_to_drop += vformat("@onready var %s: %s = %s%s\n", variable_name, node->get_class_name(), is_unique ? "%" : "$", path); } else { |