fix xml decode of kfm in single prims case

0.9.1.1
UbitUmarov 2019-11-23 01:17:03 +00:00
parent 2a508edcb4
commit 14270e316a
1 changed files with 6 additions and 5 deletions

View File

@ -110,15 +110,16 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
} }
} }
while (reader.ReadToNextSibling("Part")); while (reader.ReadToNextSibling("Part"));
reader.ReadEndElement(); reader.ReadEndElement();
} }
else
reader.Read();
if (reader.Name == "KeyframeMotion" && reader.NodeType == XmlNodeType.Element) if (reader.Name == "KeyframeMotion" && reader.NodeType == XmlNodeType.Element)
{ {
string innerkeytxt = reader.ReadElementContentAsString();
string innerkeytxt = reader.ReadElementContentAsString(); sceneObject.RootPart.KeyframeMotion =
sceneObject.RootPart.KeyframeMotion = KeyframeMotion.FromData(sceneObject, Convert.FromBase64String(innerkeytxt));
KeyframeMotion.FromData(sceneObject, Convert.FromBase64String(innerkeytxt));
} }
else else
sceneObject.RootPart.KeyframeMotion = null; sceneObject.RootPart.KeyframeMotion = null;