diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-13 21:49:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-13 21:49:06 +0200 |
commit | 14a2e598751405a99278d268b1b2ccdb0398826a (patch) | |
tree | b91fdc3d9f27b722563187d139f9c660deac463a /scene/animation | |
parent | 761eb7e06a25f61037ebbb62e57058c5ec2866a2 (diff) | |
parent | 81512a3732dd2cad3989fa94c0ec9261c6930030 (diff) |
Merge pull request #51642 from akien-mga/cleanup-use_single_quotes
Diffstat (limited to 'scene/animation')
-rw-r--r-- | scene/animation/animation_player.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index 5d200ebf86..f6091f224c 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -1493,7 +1493,7 @@ NodePath AnimationPlayer::get_root() const { void AnimationPlayer::get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const { #ifdef TOOLS_ENABLED - const String quote_style = EDITOR_DEF("text_editor/completion/use_single_quotes", 0) ? "'" : "\""; + const String quote_style = EDITOR_GET("text_editor/completion/use_single_quotes") ? "'" : "\""; #else const String quote_style = "\""; #endif @@ -1502,8 +1502,8 @@ void AnimationPlayer::get_argument_options(const StringName &p_function, int p_i if (p_idx == 0 && (p_function == "play" || p_function == "play_backwards" || p_function == "remove_animation" || p_function == "has_animation" || p_function == "queue")) { List<StringName> al; get_animation_list(&al); - for (const StringName &E : al) { - r_options->push_back(quote_style + String(E) + quote_style); + for (const StringName &name : al) { + r_options->push_back(String(name).quote(quote_style)); } } Node::get_argument_options(p_function, p_idx, r_options); |