diff options
author | Melanie | 2011-12-05 19:33:25 +0100 |
---|---|---|
committer | Melanie | 2011-12-05 19:33:25 +0100 |
commit | 6362df1202aa1b44dc576128bcd6afd597046792 (patch) | |
tree | 28c1eb7179e4fddc67ef3dfdacdc50d0887f8db1 /OpenSim/Region/Framework/Scenes/Serialization | |
parent | Merge branch 'master' into bigmerge (diff) | |
download | opensim-SC_OLD-6362df1202aa1b44dc576128bcd6afd597046792.zip opensim-SC_OLD-6362df1202aa1b44dc576128bcd6afd597046792.tar.gz opensim-SC_OLD-6362df1202aa1b44dc576128bcd6afd597046792.tar.bz2 opensim-SC_OLD-6362df1202aa1b44dc576128bcd6afd597046792.tar.xz |
Serialize the Volume Detect field
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Serialization')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs index 680a6fa..5f2f7d8 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | |||
@@ -347,6 +347,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
347 | m_SOPXmlProcessors.Add("PayPrice4", ProcessPayPrice4); | 347 | m_SOPXmlProcessors.Add("PayPrice4", ProcessPayPrice4); |
348 | 348 | ||
349 | m_SOPXmlProcessors.Add("Buoyancy", ProcessBuoyancy); | 349 | m_SOPXmlProcessors.Add("Buoyancy", ProcessBuoyancy); |
350 | m_SOPXmlProcessors.Add("VolumeDetectActive", ProcessVolumeDetectActive); | ||
350 | #endregion | 351 | #endregion |
351 | 352 | ||
352 | #region TaskInventoryXmlProcessors initialization | 353 | #region TaskInventoryXmlProcessors initialization |
@@ -736,6 +737,11 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
736 | obj.Buoyancy = (int)reader.ReadElementContentAsFloat("Buoyancy", String.Empty); | 737 | obj.Buoyancy = (int)reader.ReadElementContentAsFloat("Buoyancy", String.Empty); |
737 | } | 738 | } |
738 | 739 | ||
740 | private static void ProcessVolumeDetectActive(SceneObjectPart obj, XmlTextReader reader) | ||
741 | { | ||
742 | obj.VolumeDetectActive = Util.ReadBoolean(reader); | ||
743 | } | ||
744 | |||
739 | #endregion | 745 | #endregion |
740 | 746 | ||
741 | #region TaskInventoryXmlProcessors | 747 | #region TaskInventoryXmlProcessors |
@@ -1220,6 +1226,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
1220 | writer.WriteElementString("PayPrice4", sop.PayPrice[4].ToString()); | 1226 | writer.WriteElementString("PayPrice4", sop.PayPrice[4].ToString()); |
1221 | 1227 | ||
1222 | writer.WriteElementString("Buoyancy", sop.Buoyancy.ToString()); | 1228 | writer.WriteElementString("Buoyancy", sop.Buoyancy.ToString()); |
1229 | writer.WriteElementString("VolumeDetectActive", sop.VolumeDetectActive.ToString().ToLower()); | ||
1223 | 1230 | ||
1224 | writer.WriteEndElement(); | 1231 | writer.WriteEndElement(); |
1225 | } | 1232 | } |
@@ -1586,4 +1593,4 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
1586 | 1593 | ||
1587 | #endregion | 1594 | #endregion |
1588 | } | 1595 | } |
1589 | } \ No newline at end of file | 1596 | } |