another missing file

0.9.1.0-post-fixes
UbitUmarov 2019-01-21 06:41:01 +00:00
parent da0ea2698b
commit ef43111fc1
1 changed files with 7 additions and 2 deletions

View File

@ -989,7 +989,12 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
private static void ProcessDynAttrs(SceneObjectPart obj, XmlReader reader) private static void ProcessDynAttrs(SceneObjectPart obj, XmlReader reader)
{ {
obj.DynAttrs.ReadXml(reader); DAMap waste = new DAMap();
waste.ReadXml(reader);
if(waste.CountNamespaces > 0)
obj.DynAttrs = waste;
else
obj.DynAttrs = null;
} }
private static void ProcessTextureAnimation(SceneObjectPart obj, XmlReader reader) private static void ProcessTextureAnimation(SceneObjectPart obj, XmlReader reader)
@ -1559,7 +1564,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
writer.WriteElementString("MediaUrl", sop.MediaUrl.ToString()); writer.WriteElementString("MediaUrl", sop.MediaUrl.ToString());
WriteVector(writer, "AttachedPos", sop.AttachedPos); WriteVector(writer, "AttachedPos", sop.AttachedPos);
if (sop.DynAttrs.CountNamespaces > 0) if (sop.DynAttrs != null && sop.DynAttrs.CountNamespaces > 0)
{ {
writer.WriteStartElement("DynAttrs"); writer.WriteStartElement("DynAttrs");
sop.DynAttrs.WriteXml(writer); sop.DynAttrs.WriteXml(writer);