Better skipping of "SculptData" when parsing XML
parent
f360b687d6
commit
1fe504fee5
|
@ -507,7 +507,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
|
||||||
m_ShapeXmlProcessors.Add("HollowShape", ProcessShpHollowShape);
|
m_ShapeXmlProcessors.Add("HollowShape", ProcessShpHollowShape);
|
||||||
m_ShapeXmlProcessors.Add("SculptTexture", ProcessShpSculptTexture);
|
m_ShapeXmlProcessors.Add("SculptTexture", ProcessShpSculptTexture);
|
||||||
m_ShapeXmlProcessors.Add("SculptType", ProcessShpSculptType);
|
m_ShapeXmlProcessors.Add("SculptType", ProcessShpSculptType);
|
||||||
m_ShapeXmlProcessors.Add("SculptData", ProcessShpSculptData);
|
// Ignore "SculptData"; this element is deprecated
|
||||||
m_ShapeXmlProcessors.Add("FlexiSoftness", ProcessShpFlexiSoftness);
|
m_ShapeXmlProcessors.Add("FlexiSoftness", ProcessShpFlexiSoftness);
|
||||||
m_ShapeXmlProcessors.Add("FlexiTension", ProcessShpFlexiTension);
|
m_ShapeXmlProcessors.Add("FlexiTension", ProcessShpFlexiTension);
|
||||||
m_ShapeXmlProcessors.Add("FlexiDrag", ProcessShpFlexiDrag);
|
m_ShapeXmlProcessors.Add("FlexiDrag", ProcessShpFlexiDrag);
|
||||||
|
@ -1142,12 +1142,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
|
||||||
shp.SculptType = (byte)reader.ReadElementContentAsInt("SculptType", String.Empty);
|
shp.SculptType = (byte)reader.ReadElementContentAsInt("SculptType", String.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void ProcessShpSculptData(PrimitiveBaseShape shp, XmlTextReader reader)
|
|
||||||
{
|
|
||||||
// Ignore this field. It shouldn't have been serialized. If we read it
|
|
||||||
// we'll just be wasting memory.
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void ProcessShpFlexiSoftness(PrimitiveBaseShape shp, XmlTextReader reader)
|
private static void ProcessShpFlexiSoftness(PrimitiveBaseShape shp, XmlTextReader reader)
|
||||||
{
|
{
|
||||||
shp.FlexiSoftness = reader.ReadElementContentAsInt("FlexiSoftness", String.Empty);
|
shp.FlexiSoftness = reader.ReadElementContentAsInt("FlexiSoftness", String.Empty);
|
||||||
|
|
Loading…
Reference in New Issue