mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Serialize the Volume Detect field
This commit is contained in:
@@ -220,8 +220,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public Vector3 RotationAxis = Vector3.One;
|
||||
|
||||
public bool VolumeDetectActive; // XmlIgnore set to avoid problems with persistance until I come to care for this
|
||||
// Certainly this must be a persistant setting finally
|
||||
public bool VolumeDetectActive;
|
||||
|
||||
public bool IsWaitingForFirstSpinUpdatePacket;
|
||||
|
||||
|
||||
@@ -347,6 +347,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
|
||||
m_SOPXmlProcessors.Add("PayPrice4", ProcessPayPrice4);
|
||||
|
||||
m_SOPXmlProcessors.Add("Buoyancy", ProcessBuoyancy);
|
||||
m_SOPXmlProcessors.Add("VolumeDetectActive", ProcessVolumeDetectActive);
|
||||
#endregion
|
||||
|
||||
#region TaskInventoryXmlProcessors initialization
|
||||
@@ -736,6 +737,11 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
|
||||
obj.Buoyancy = (int)reader.ReadElementContentAsFloat("Buoyancy", String.Empty);
|
||||
}
|
||||
|
||||
private static void ProcessVolumeDetectActive(SceneObjectPart obj, XmlTextReader reader)
|
||||
{
|
||||
obj.VolumeDetectActive = Util.ReadBoolean(reader);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region TaskInventoryXmlProcessors
|
||||
@@ -1220,6 +1226,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
|
||||
writer.WriteElementString("PayPrice4", sop.PayPrice[4].ToString());
|
||||
|
||||
writer.WriteElementString("Buoyancy", sop.Buoyancy.ToString());
|
||||
writer.WriteElementString("VolumeDetectActive", sop.VolumeDetectActive.ToString().ToLower());
|
||||
|
||||
writer.WriteEndElement();
|
||||
}
|
||||
@@ -1586,4 +1593,4 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user