From 51d4d88985c47d4aa589d1b0738e20a42c6e4b6a Mon Sep 17 00:00:00 2001 From: mingchen Date: Fri, 23 Nov 2007 20:17:49 +0000 Subject: *Fixed bug causing parcel prim counts to stop updating. --- OpenSim/Region/Environment/Scenes/Scene.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 81d458a..ea3283d 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -249,6 +249,7 @@ namespace OpenSim.Region.Environment.Scenes protected virtual void RegisterDefaultSceneEvents() { m_eventManager.OnParcelPrimCountAdd += m_LandManager.addPrimToLandPrimCounts; + m_eventManager.OnParcelPrimCountUpdate += this.addPrimsToParcelCounts; m_eventManager.OnPermissionError += SendPermissionAlert; } @@ -1137,6 +1138,18 @@ namespace OpenSim.Region.Environment.Scenes m_LandManager.landPrimCountTainted = false; } + + public void addPrimsToParcelCounts() + { + foreach (EntityBase obj in Entities.Values) + { + if (obj is SceneObjectGroup) + { + m_eventManager.TriggerParcelPrimCountAdd((SceneObjectGroup)obj); + } + } + } + #endregion #region Console Commands -- cgit v1.1