aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authormingchen2007-11-23 20:17:49 +0000
committermingchen2007-11-23 20:17:49 +0000
commit51d4d88985c47d4aa589d1b0738e20a42c6e4b6a (patch)
treec22a5597580f4e902e36e89f48b72e80580a2f19
parent* convenience ignore (diff)
downloadopensim-SC_OLD-51d4d88985c47d4aa589d1b0738e20a42c6e4b6a.zip
opensim-SC_OLD-51d4d88985c47d4aa589d1b0738e20a42c6e4b6a.tar.gz
opensim-SC_OLD-51d4d88985c47d4aa589d1b0738e20a42c6e4b6a.tar.bz2
opensim-SC_OLD-51d4d88985c47d4aa589d1b0738e20a42c6e4b6a.tar.xz
*Fixed bug causing parcel prim counts to stop updating.
-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