Exclude attachments from parcel prim counts

0.6.0-stable
Melanie Thielker 2008-10-06 07:50:26 +00:00
parent c65b10caa2
commit 03a41e5f8b
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
{ {
if (obj != null) 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); m_scene.EventManager.TriggerParcelPrimCountAdd((SceneObjectGroup)obj);
} }