aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 4484749..4de10c7 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -2522,11 +2522,17 @@ namespace OpenSim.Region.Environment.Scenes
2522 { 2522 {
2523 lock (m_parts) 2523 lock (m_parts)
2524 { 2524 {
2525 foreach (SceneObjectPart part in m_parts.Values) 2525 if (RootPart != null)
2526 { 2526 {
2527 if (part.Shape.SculptEntry && part.Shape.SculptTexture != LLUUID.Zero) 2527 if ((RootPart.GetEffectiveObjectFlags() & (uint)LLObject.ObjectFlags.Phantom) == 0)
2528 { 2528 {
2529 m_scene.AssetCache.GetAsset(part.Shape.SculptTexture, part.SculptTextureCallback, true); 2529 foreach (SceneObjectPart part in m_parts.Values)
2530 {
2531 if (part.Shape.SculptEntry && part.Shape.SculptTexture != LLUUID.Zero)
2532 {
2533 m_scene.AssetCache.GetAsset(part.Shape.SculptTexture, part.SculptTextureCallback, true);
2534 }
2535 }
2530 } 2536 }
2531 } 2537 }
2532 } 2538 }