diff options
author | UbitUmarov | 2019-01-21 06:41:01 +0000 |
---|---|---|
committer | UbitUmarov | 2019-01-21 06:41:01 +0000 |
commit | ef43111fc136dab67476c3fc8c709bbbb522a34d (patch) | |
tree | 2f1ee90123e1cc6e5d1c5b05b99e8ba12d3716c3 /OpenSim | |
parent | another missing file (diff) | |
download | opensim-SC-ef43111fc136dab67476c3fc8c709bbbb522a34d.zip opensim-SC-ef43111fc136dab67476c3fc8c709bbbb522a34d.tar.gz opensim-SC-ef43111fc136dab67476c3fc8c709bbbb522a34d.tar.bz2 opensim-SC-ef43111fc136dab67476c3fc8c709bbbb522a34d.tar.xz |
another missing file
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs index a664d0c..de880e3 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | |||
@@ -989,7 +989,12 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
989 | 989 | ||
990 | private static void ProcessDynAttrs(SceneObjectPart obj, XmlReader reader) | 990 | private static void ProcessDynAttrs(SceneObjectPart obj, XmlReader reader) |
991 | { | 991 | { |
992 | obj.DynAttrs.ReadXml(reader); | 992 | DAMap waste = new DAMap(); |
993 | waste.ReadXml(reader); | ||
994 | if(waste.CountNamespaces > 0) | ||
995 | obj.DynAttrs = waste; | ||
996 | else | ||
997 | obj.DynAttrs = null; | ||
993 | } | 998 | } |
994 | 999 | ||
995 | private static void ProcessTextureAnimation(SceneObjectPart obj, XmlReader reader) | 1000 | private static void ProcessTextureAnimation(SceneObjectPart obj, XmlReader reader) |
@@ -1559,7 +1564,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
1559 | writer.WriteElementString("MediaUrl", sop.MediaUrl.ToString()); | 1564 | writer.WriteElementString("MediaUrl", sop.MediaUrl.ToString()); |
1560 | WriteVector(writer, "AttachedPos", sop.AttachedPos); | 1565 | WriteVector(writer, "AttachedPos", sop.AttachedPos); |
1561 | 1566 | ||
1562 | if (sop.DynAttrs.CountNamespaces > 0) | 1567 | if (sop.DynAttrs != null && sop.DynAttrs.CountNamespaces > 0) |
1563 | { | 1568 | { |
1564 | writer.WriteStartElement("DynAttrs"); | 1569 | writer.WriteStartElement("DynAttrs"); |
1565 | sop.DynAttrs.WriteXml(writer); | 1570 | sop.DynAttrs.WriteXml(writer); |