aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
index de880e3..8cd2c7f 100644
--- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
+++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
@@ -110,15 +110,16 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
110 } 110 }
111 } 111 }
112 while (reader.ReadToNextSibling("Part")); 112 while (reader.ReadToNextSibling("Part"));
113 reader.ReadEndElement(); 113 reader.ReadEndElement();
114 } 114 }
115 else
116 reader.Read();
115 117
116 if (reader.Name == "KeyframeMotion" && reader.NodeType == XmlNodeType.Element) 118 if (reader.Name == "KeyframeMotion" && reader.NodeType == XmlNodeType.Element)
117 { 119 {
118 120 string innerkeytxt = reader.ReadElementContentAsString();
119 string innerkeytxt = reader.ReadElementContentAsString(); 121 sceneObject.RootPart.KeyframeMotion =
120 sceneObject.RootPart.KeyframeMotion = 122 KeyframeMotion.FromData(sceneObject, Convert.FromBase64String(innerkeytxt));
121 KeyframeMotion.FromData(sceneObject, Convert.FromBase64String(innerkeytxt));
122 } 123 }
123 else 124 else
124 sceneObject.RootPart.KeyframeMotion = null; 125 sceneObject.RootPart.KeyframeMotion = null;