aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs13
1 files changed, 13 insertions, 0 deletions
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
249 protected virtual void RegisterDefaultSceneEvents() 249 protected virtual void RegisterDefaultSceneEvents()
250 { 250 {
251 m_eventManager.OnParcelPrimCountAdd += m_LandManager.addPrimToLandPrimCounts; 251 m_eventManager.OnParcelPrimCountAdd += m_LandManager.addPrimToLandPrimCounts;
252 m_eventManager.OnParcelPrimCountUpdate += this.addPrimsToParcelCounts;
252 m_eventManager.OnPermissionError += SendPermissionAlert; 253 m_eventManager.OnPermissionError += SendPermissionAlert;
253 } 254 }
254 255
@@ -1137,6 +1138,18 @@ namespace OpenSim.Region.Environment.Scenes
1137 m_LandManager.landPrimCountTainted = false; 1138 m_LandManager.landPrimCountTainted = false;
1138 } 1139 }
1139 1140
1141
1142 public void addPrimsToParcelCounts()
1143 {
1144 foreach (EntityBase obj in Entities.Values)
1145 {
1146 if (obj is SceneObjectGroup)
1147 {
1148 m_eventManager.TriggerParcelPrimCountAdd((SceneObjectGroup)obj);
1149 }
1150 }
1151 }
1152
1140 #endregion 1153 #endregion
1141 1154
1142 #region Console Commands 1155 #region Console Commands