diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs index a93f3c8..85650d6 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | |||
@@ -507,7 +507,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
507 | m_ShapeXmlProcessors.Add("HollowShape", ProcessShpHollowShape); | 507 | m_ShapeXmlProcessors.Add("HollowShape", ProcessShpHollowShape); |
508 | m_ShapeXmlProcessors.Add("SculptTexture", ProcessShpSculptTexture); | 508 | m_ShapeXmlProcessors.Add("SculptTexture", ProcessShpSculptTexture); |
509 | m_ShapeXmlProcessors.Add("SculptType", ProcessShpSculptType); | 509 | m_ShapeXmlProcessors.Add("SculptType", ProcessShpSculptType); |
510 | m_ShapeXmlProcessors.Add("SculptData", ProcessShpSculptData); | 510 | // Ignore "SculptData"; this element is deprecated |
511 | m_ShapeXmlProcessors.Add("FlexiSoftness", ProcessShpFlexiSoftness); | 511 | m_ShapeXmlProcessors.Add("FlexiSoftness", ProcessShpFlexiSoftness); |
512 | m_ShapeXmlProcessors.Add("FlexiTension", ProcessShpFlexiTension); | 512 | m_ShapeXmlProcessors.Add("FlexiTension", ProcessShpFlexiTension); |
513 | m_ShapeXmlProcessors.Add("FlexiDrag", ProcessShpFlexiDrag); | 513 | m_ShapeXmlProcessors.Add("FlexiDrag", ProcessShpFlexiDrag); |
@@ -1142,13 +1142,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
1142 | shp.SculptType = (byte)reader.ReadElementContentAsInt("SculptType", String.Empty); | 1142 | shp.SculptType = (byte)reader.ReadElementContentAsInt("SculptType", String.Empty); |
1143 | } | 1143 | } |
1144 | 1144 | ||
1145 | private static void ProcessShpSculptData(PrimitiveBaseShape shp, XmlTextReader reader) | ||
1146 | { | ||
1147 | // m_log.DebugFormat("[SCENE OBJECT SERIALIZER]: Setting sculpt data length {0}", shp.SculptData.Length); | ||
1148 | |||
1149 | shp.SculptData = Convert.FromBase64String(reader.ReadElementString("SculptData")); | ||
1150 | } | ||
1151 | |||
1152 | private static void ProcessShpFlexiSoftness(PrimitiveBaseShape shp, XmlTextReader reader) | 1145 | private static void ProcessShpFlexiSoftness(PrimitiveBaseShape shp, XmlTextReader reader) |
1153 | { | 1146 | { |
1154 | shp.FlexiSoftness = reader.ReadElementContentAsInt("FlexiSoftness", String.Empty); | 1147 | shp.FlexiSoftness = reader.ReadElementContentAsInt("FlexiSoftness", String.Empty); |
@@ -1558,14 +1551,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
1558 | 1551 | ||
1559 | WriteUUID(writer, "SculptTexture", shp.SculptTexture, options); | 1552 | WriteUUID(writer, "SculptTexture", shp.SculptTexture, options); |
1560 | writer.WriteElementString("SculptType", shp.SculptType.ToString()); | 1553 | writer.WriteElementString("SculptType", shp.SculptType.ToString()); |
1561 | writer.WriteStartElement("SculptData"); | 1554 | // Don't serialize SculptData. It's just a copy of the asset, which can be loaded separately using 'SculptTexture'. |
1562 | byte[] sd; | ||
1563 | if (shp.SculptData != null) | ||
1564 | sd = shp.SculptData; | ||
1565 | else | ||
1566 | sd = Utils.EmptyBytes; | ||
1567 | writer.WriteBase64(sd, 0, sd.Length); | ||
1568 | writer.WriteEndElement(); // SculptData | ||
1569 | 1555 | ||
1570 | writer.WriteElementString("FlexiSoftness", shp.FlexiSoftness.ToString()); | 1556 | writer.WriteElementString("FlexiSoftness", shp.FlexiSoftness.ToString()); |
1571 | writer.WriteElementString("FlexiTension", shp.FlexiTension.ToString()); | 1557 | writer.WriteElementString("FlexiTension", shp.FlexiTension.ToString()); |