fix xml decode of kfm in single prims case
parent
2a508edcb4
commit
14270e316a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue