diff options
author | Justin Clark-Casey (justincc) | 2011-03-23 21:50:56 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-03-23 21:53:14 +0000 |
commit | d011896341d09ce6c10a801264e663b6a19f0b48 (patch) | |
tree | 02369e0c5a2103e8f42f5bf6128814de9e2afaf5 /OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | |
parent | Fix a typo in the SQLite DLL config and amend the instructions for running on... (diff) | |
download | opensim-SC_OLD-d011896341d09ce6c10a801264e663b6a19f0b48.zip opensim-SC_OLD-d011896341d09ce6c10a801264e663b6a19f0b48.tar.gz opensim-SC_OLD-d011896341d09ce6c10a801264e663b6a19f0b48.tar.bz2 opensim-SC_OLD-d011896341d09ce6c10a801264e663b6a19f0b48.tar.xz |
Add generic EventManager.OnObjectAddedToScene and get PrimCountModule to listen for that rather than EventManager.OnParcelPrimCountAdd
OnParcelPrimCountAdd had the wrong semantics for the PrimCountModule - it was invoked for every entity in the scene, not just new ones, which would screw up the untainted count.
Extend automated test for this scenario.
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index 514be4f..4d887a8 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | |||
@@ -854,6 +854,10 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
854 | 854 | ||
855 | public void EventManagerOnParcelPrimCountUpdate() | 855 | public void EventManagerOnParcelPrimCountUpdate() |
856 | { | 856 | { |
857 | // m_log.DebugFormat( | ||
858 | // "[LAND MANAGEMENT MODULE]: Triggered EventManagerOnParcelPrimCountUpdate() for {0}", | ||
859 | // m_scene.RegionInfo.RegionName); | ||
860 | |||
857 | ResetAllLandPrimCounts(); | 861 | ResetAllLandPrimCounts(); |
858 | EntityBase[] entities = m_scene.Entities.GetEntities(); | 862 | EntityBase[] entities = m_scene.Entities.GetEntities(); |
859 | foreach (EntityBase obj in entities) | 863 | foreach (EntityBase obj in entities) |