Exclude attachments from parcel prim counts

This commit is contained in:
Melanie Thielker
2008-10-06 07:50:26 +00:00
parent c65b10caa2
commit 03a41e5f8b

View File

@@ -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);
}