StringToQuaternion using culture-sensitive deserialisation for x argument

bdg_toast

New member
Hi there,

We've run into issues with BT deserialisation when the system language is set to French, it appears that some of the JSON deserialisation is culture-sensitive.

I tracked it down to StringToQuaternion, the first call to float.Parse is missing a CultureInfo.InvariantCulture argument (the other 3 floats are fine).
Really easy fix, in JSONDeserialization.cs:565 replace float.Parse(stringSplit[0]) with float.Parse(stringSplit[0], CultureInfo.InvariantCulture).

Cheers,
Brandon
 
Top