aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-03-30 00:42:02 +0100
committerJustin Clark-Casey (justincc)2011-03-30 00:42:02 +0100
commitf7ed7fc05d1c6cc02df43f787590d8b3adeda22b (patch)
tree42289b71cd459f5ccdde9cc8de20217d26ad0753 /OpenSim/Region
parent(re)implement selected prim count. (diff)
downloadopensim-SC_OLD-f7ed7fc05d1c6cc02df43f787590d8b3adeda22b.zip
opensim-SC_OLD-f7ed7fc05d1c6cc02df43f787590d8b3adeda22b.tar.gz
opensim-SC_OLD-f7ed7fc05d1c6cc02df43f787590d8b3adeda22b.tar.bz2
opensim-SC_OLD-f7ed7fc05d1c6cc02df43f787590d8b3adeda22b.tar.xz
When a new parcel is created, make sure the prim counts are updated.
This is done by tainting the counts where appropriate
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs b/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs
index ab0e88e..d1e2328 100644
--- a/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs
@@ -51,7 +51,7 @@ namespace OpenSim.Region.CoreModules.World.Land
51 51
52 public class PrimCountModule : IPrimCountModule, INonSharedRegionModule 52 public class PrimCountModule : IPrimCountModule, INonSharedRegionModule
53 { 53 {
54// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 54 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
55 55
56 private Scene m_Scene; 56 private Scene m_Scene;
57 private Dictionary<UUID, PrimCounts> m_PrimCounts = 57 private Dictionary<UUID, PrimCounts> m_PrimCounts =
@@ -63,7 +63,6 @@ namespace OpenSim.Region.CoreModules.World.Land
63 private Dictionary<UUID, ParcelCounts> m_ParcelCounts = 63 private Dictionary<UUID, ParcelCounts> m_ParcelCounts =
64 new Dictionary<UUID, ParcelCounts>(); 64 new Dictionary<UUID, ParcelCounts>();
65 65
66
67 /// <value> 66 /// <value>
68 /// For now, a simple simwide taint to get this up. Later parcel based 67 /// For now, a simple simwide taint to get this up. Later parcel based
69 /// taint to allow recounting a parcel if only ownership has changed 68 /// taint to allow recounting a parcel if only ownership has changed
@@ -95,6 +94,7 @@ namespace OpenSim.Region.CoreModules.World.Land
95 OnObjectBeingRemovedFromScene; 94 OnObjectBeingRemovedFromScene;
96 m_Scene.EventManager.OnParcelPrimCountTainted += 95 m_Scene.EventManager.OnParcelPrimCountTainted +=
97 OnParcelPrimCountTainted; 96 OnParcelPrimCountTainted;
97 m_Scene.EventManager.OnLandObjectAdded += delegate(ILandObject lo) { OnParcelPrimCountTainted(); };
98 } 98 }
99 99
100 public void RegionLoaded(Scene scene) 100 public void RegionLoaded(Scene scene)