diff options
author | Justin Clark-Casey (justincc) | 2011-04-21 18:12:29 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-04-21 18:12:29 +0100 |
commit | 63c1b7e4754271ec898592ba6209dbc776469370 (patch) | |
tree | dddf614b34185cb8690997c0328399d07b97d818 /OpenSim/Region/Framework/Scenes/UuidGatherer.cs | |
parent | Get Viewer 2 voice working with OpenSim. (diff) | |
download | opensim-SC_OLD-63c1b7e4754271ec898592ba6209dbc776469370.zip opensim-SC_OLD-63c1b7e4754271ec898592ba6209dbc776469370.tar.gz opensim-SC_OLD-63c1b7e4754271ec898592ba6209dbc776469370.tar.bz2 opensim-SC_OLD-63c1b7e4754271ec898592ba6209dbc776469370.tar.xz |
Alter uuid gather so that it properly analyzes coalesced objects.
This should correct save all the assets required for the items within the coalesced objects in an IAR. This should also correctly gather the items on hypergrid takes.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/UuidGatherer.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/UuidGatherer.cs | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs index 83906d7..77b1535 100644 --- a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs +++ b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs | |||
@@ -298,10 +298,20 @@ namespace OpenSim.Region.Framework.Scenes | |||
298 | if (null != objectAsset) | 298 | if (null != objectAsset) |
299 | { | 299 | { |
300 | string xml = Utils.BytesToString(objectAsset.Data); | 300 | string xml = Utils.BytesToString(objectAsset.Data); |
301 | SceneObjectGroup sog = SceneObjectSerializer.FromOriginalXmlFormat(xml); | 301 | |
302 | 302 | CoalescedSceneObjects coa; | |
303 | if (null != sog) | 303 | if (CoalescedSceneObjectsSerializer.TryFromXml(xml, out coa)) |
304 | GatherAssetUuids(sog, assetUuids); | 304 | { |
305 | foreach (SceneObjectGroup sog in coa.Objects) | ||
306 | GatherAssetUuids(sog, assetUuids); | ||
307 | } | ||
308 | else | ||
309 | { | ||
310 | SceneObjectGroup sog = SceneObjectSerializer.FromOriginalXmlFormat(xml); | ||
311 | |||
312 | if (null != sog) | ||
313 | GatherAssetUuids(sog, assetUuids); | ||
314 | } | ||
305 | } | 315 | } |
306 | } | 316 | } |
307 | 317 | ||