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.
This commit is contained in:
Mario Liebisch 2023-01-08 09:47:56 +01:00
parent fcba87e696
commit b495c63b0b
No known key found for this signature in database
GPG Key ID: 32B56AC1F87EFBF9

View File

@ -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";