diff options
author | Mario Liebisch <mario.liebisch@gmail.com> | 2023-01-08 09:47:56 +0100 |
---|---|---|
committer | Mario Liebisch <mario.liebisch@gmail.com> | 2023-01-08 11:27:44 +0100 |
commit | b495c63b0bdf28dd92ceebb531c21f34b8336390 (patch) | |
tree | 7aef87925c072ee7b6e434885d588675d86bbb7b | |
parent | fcba87e696d58912838d8a4a6987b10efa28e78f (diff) |
Properly stringify args for Call Method Tracks
This ensures string arguments are always shown as properly enclose in
quotes and escaped and should help avoid confusion, as the previously
shown key frame labels could display as invalid code, most prominently
missing quote characters around strings.
-rw-r--r-- | editor/animation_track_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index 65bc7b2414..73094d984e 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -2231,7 +2231,7 @@ void AnimationTrackEdit::draw_key(int p_index, float p_pixels_sec, int p_x, bool if (i > 0) { text += ", "; } - text += String(args[i]); + text += args[i].get_construct_string(); } text += ")"; @@ -2539,7 +2539,7 @@ String AnimationTrackEdit::get_tooltip(const Point2 &p_pos) const { if (i > 0) { text += ", "; } - text += String(args[i]); + text += args[i].get_construct_string(); } text += ")\n"; |