revert the use of direct data on xml decode, for now
parent
aca5728ab2
commit
28b22a4fc1
|
@ -798,6 +798,28 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// <param name="sceneObjectAsset"></param>
|
/// <param name="sceneObjectAsset"></param>
|
||||||
private void RecordSceneObjectAssetUuids(AssetBase sceneObjectAsset)
|
private void RecordSceneObjectAssetUuids(AssetBase sceneObjectAsset)
|
||||||
{
|
{
|
||||||
|
string xml = Utils.BytesToString(sceneObjectAsset.Data);
|
||||||
|
|
||||||
|
CoalescedSceneObjects coa;
|
||||||
|
if (CoalescedSceneObjectsSerializer.TryFromXml(xml, out coa))
|
||||||
|
{
|
||||||
|
foreach (SceneObjectGroup sog in coa.Objects)
|
||||||
|
{
|
||||||
|
sog.TemporaryInstance = true;
|
||||||
|
AddForInspection(sog);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SceneObjectGroup sog = SceneObjectSerializer.FromOriginalXmlFormat(xml);
|
||||||
|
if (null != sog)
|
||||||
|
{
|
||||||
|
sog.TemporaryInstance = true;
|
||||||
|
AddForInspection(sog);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
if (CoalescedSceneObjectsSerializer.TryFromXmlData(sceneObjectAsset.Data, out CoalescedSceneObjects coa))
|
if (CoalescedSceneObjectsSerializer.TryFromXmlData(sceneObjectAsset.Data, out CoalescedSceneObjects coa))
|
||||||
{
|
{
|
||||||
foreach (SceneObjectGroup sog in coa.Objects)
|
foreach (SceneObjectGroup sog in coa.Objects)
|
||||||
|
@ -815,6 +837,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
AddForInspection(sog);
|
AddForInspection(sog);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue