aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorDiva Canto2010-10-19 15:16:29 -0700
committerDiva Canto2010-10-19 15:16:29 -0700
commit8731c2be11085469c051dfea067b930520059a6a (patch)
treee6796a62cca642b7e1864e21110e65416a25ffef /OpenSim/Region/Framework
parentAnother take related to the previous commit. (diff)
downloadopensim-SC_OLD-8731c2be11085469c051dfea067b930520059a6a.zip
opensim-SC_OLD-8731c2be11085469c051dfea067b930520059a6a.tar.gz
opensim-SC_OLD-8731c2be11085469c051dfea067b930520059a6a.tar.bz2
opensim-SC_OLD-8731c2be11085469c051dfea067b930520059a6a.tar.xz
It looks like Vector3s also got written down in lower case at some point in time. Added code to account for that.
17:45:59 - [SceneObjectSerializer]: exception while parsing SitTargetPosition: System.Xml.XmlException: Expecting X tag from namespace , got x and instead Line 1, position 2838.
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
index 58ec8a6..044b599 100644
--- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
+++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
@@ -1425,9 +1425,9 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
1425 Vector3 vec; 1425 Vector3 vec;
1426 1426
1427 reader.ReadStartElement(name); 1427 reader.ReadStartElement(name);
1428 vec.X = reader.ReadElementContentAsFloat("X", String.Empty); 1428 vec.X = reader.ReadElementContentAsFloat(reader.Name, String.Empty); // X or x
1429 vec.Y = reader.ReadElementContentAsFloat("Y", String.Empty); 1429 vec.Y = reader.ReadElementContentAsFloat(reader.Name, String.Empty); // Y or Y
1430 vec.Z = reader.ReadElementContentAsFloat("Z", String.Empty); 1430 vec.Z = reader.ReadElementContentAsFloat(reader.Name, String.Empty); // Z or z
1431 reader.ReadEndElement(); 1431 reader.ReadEndElement();
1432 1432
1433 return vec; 1433 return vec;