Skip to content

Commit f2c986c

Browse files
committed
fix quaternion test failing due to culture mismatch
1 parent b54aa36 commit f2c986c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Codecs/KeyValues2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ void WriteAttribute(string name, Type type, object value, bool in_array)
287287
else if (type == typeof(Quaternion))
288288
{
289289
var q = (Quaternion)value;
290-
value = string.Join(" ", q.X, q.Y, q.Z, q.W);
290+
value = FormattableString.Invariant($"{q.X} {q.Y} {q.Z} {q.W}");
291291
}
292292
else if (type == typeof(Matrix4x4))
293293
{

0 commit comments

Comments
 (0)