diff options
author | UbitUmarov | 2017-07-13 04:14:33 +0100 |
---|---|---|
committer | UbitUmarov | 2017-07-13 04:14:33 +0100 |
commit | bd249bdf5b175ee6d84588a777444f2b89d7df1e (patch) | |
tree | fc197ccc9aac6d0285ae3d0c8c9e8cf1914dc9fe /OpenSim/Framework/PhysicsInertia.cs | |
parent | fix wrong test (diff) | |
download | opensim-SC_OLD-bd249bdf5b175ee6d84588a777444f2b89d7df1e.zip opensim-SC_OLD-bd249bdf5b175ee6d84588a777444f2b89d7df1e.tar.gz opensim-SC_OLD-bd249bdf5b175ee6d84588a777444f2b89d7df1e.tar.bz2 opensim-SC_OLD-bd249bdf5b175ee6d84588a777444f2b89d7df1e.tar.xz |
replace the wrong libOMV user modifiable Utils.EnUSCulture by our own no User modifiable Culture.FormatProvider, and also for internal coerence. We do use the libomv on other code paths, so that must be fixed
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/PhysicsInertia.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Framework/PhysicsInertia.cs b/OpenSim/Framework/PhysicsInertia.cs index af70634..6e15791 100644 --- a/OpenSim/Framework/PhysicsInertia.cs +++ b/OpenSim/Framework/PhysicsInertia.cs | |||
@@ -64,25 +64,25 @@ namespace OpenSim.Framework | |||
64 | 64 | ||
65 | private void XWfloat(string name, float f) | 65 | private void XWfloat(string name, float f) |
66 | { | 66 | { |
67 | writer.WriteElementString(name, f.ToString(Utils.EnUsCulture)); | 67 | writer.WriteElementString(name, f.ToString(Culture.FormatProvider)); |
68 | } | 68 | } |
69 | 69 | ||
70 | private void XWVector(string name, Vector3 vec) | 70 | private void XWVector(string name, Vector3 vec) |
71 | { | 71 | { |
72 | writer.WriteStartElement(name); | 72 | writer.WriteStartElement(name); |
73 | writer.WriteElementString("X", vec.X.ToString(Utils.EnUsCulture)); | 73 | writer.WriteElementString("X", vec.X.ToString(Culture.FormatProvider)); |
74 | writer.WriteElementString("Y", vec.Y.ToString(Utils.EnUsCulture)); | 74 | writer.WriteElementString("Y", vec.Y.ToString(Culture.FormatProvider)); |
75 | writer.WriteElementString("Z", vec.Z.ToString(Utils.EnUsCulture)); | 75 | writer.WriteElementString("Z", vec.Z.ToString(Culture.FormatProvider)); |
76 | writer.WriteEndElement(); | 76 | writer.WriteEndElement(); |
77 | } | 77 | } |
78 | 78 | ||
79 | private void XWVector4(string name, Vector4 quat) | 79 | private void XWVector4(string name, Vector4 quat) |
80 | { | 80 | { |
81 | writer.WriteStartElement(name); | 81 | writer.WriteStartElement(name); |
82 | writer.WriteElementString("X", quat.X.ToString(Utils.EnUsCulture)); | 82 | writer.WriteElementString("X", quat.X.ToString(Culture.FormatProvider)); |
83 | writer.WriteElementString("Y", quat.Y.ToString(Utils.EnUsCulture)); | 83 | writer.WriteElementString("Y", quat.Y.ToString(Culture.FormatProvider)); |
84 | writer.WriteElementString("Z", quat.Z.ToString(Utils.EnUsCulture)); | 84 | writer.WriteElementString("Z", quat.Z.ToString(Culture.FormatProvider)); |
85 | writer.WriteElementString("W", quat.W.ToString(Utils.EnUsCulture)); | 85 | writer.WriteElementString("W", quat.W.ToString(Culture.FormatProvider)); |
86 | writer.WriteEndElement(); | 86 | writer.WriteEndElement(); |
87 | } | 87 | } |
88 | 88 | ||