From 03a41e5f8b423c182a0067b6b1ae3c92f63c30a2 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 6 Oct 2008 07:50:26 +0000 Subject: Exclude attachments from parcel prim counts --- OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Modules/World') diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs index 6ab5a57..77a31c7 100644 --- a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs @@ -595,7 +595,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land { if (obj != null) { - if (obj is SceneObjectGroup) + if ((obj is SceneObjectGroup) && ((SceneObjectGroup)obj).RootPart != null && !((SceneObjectGroup)obj).RootPart.IsAttachment) { m_scene.EventManager.TriggerParcelPrimCountAdd((SceneObjectGroup)obj); } -- cgit v1.1