aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/UuidGatherer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/UuidGatherer.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/UuidGatherer.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs
index 84e410f..d8309d8 100644
--- a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs
+++ b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs
@@ -177,9 +177,18 @@ namespace OpenSim.Region.Framework.Scenes
177 177
178 if (part.ParticleSystem.Length > 0) 178 if (part.ParticleSystem.Length > 0)
179 { 179 {
180 Primitive.ParticleSystem ps = new Primitive.ParticleSystem(part.ParticleSystem, 0); 180 try
181 if (ps.Texture != UUID.Zero) 181 {
182 assetUuids[ps.Texture] = AssetType.Texture; 182 Primitive.ParticleSystem ps = new Primitive.ParticleSystem(part.ParticleSystem, 0);
183 if (ps.Texture != UUID.Zero)
184 assetUuids[ps.Texture] = AssetType.Texture;
185 }
186 catch (Exception e)
187 {
188 m_log.WarnFormat(
189 "[UUID GATHERER]: Could not check particle system for part {0} {1} in object {2} {3} since it is corrupt. Continuing.",
190 part.Name, part.UUID, sceneObject.Name, sceneObject.UUID);
191 }
183 } 192 }
184 193
185 TaskInventoryDictionary taskDictionary = (TaskInventoryDictionary)part.TaskInventory.Clone(); 194 TaskInventoryDictionary taskDictionary = (TaskInventoryDictionary)part.TaskInventory.Clone();