When a new parcel is created, make sure the prim counts are updated.
This is done by tainting the counts where appropriate0.7.1-dev
parent
8b16f7d976
commit
f7ed7fc05d
|
@ -51,7 +51,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
|||
|
||||
public class PrimCountModule : IPrimCountModule, INonSharedRegionModule
|
||||
{
|
||||
// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
private Scene m_Scene;
|
||||
private Dictionary<UUID, PrimCounts> m_PrimCounts =
|
||||
|
@ -63,7 +63,6 @@ namespace OpenSim.Region.CoreModules.World.Land
|
|||
private Dictionary<UUID, ParcelCounts> m_ParcelCounts =
|
||||
new Dictionary<UUID, ParcelCounts>();
|
||||
|
||||
|
||||
/// <value>
|
||||
/// For now, a simple simwide taint to get this up. Later parcel based
|
||||
/// taint to allow recounting a parcel if only ownership has changed
|
||||
|
@ -95,6 +94,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
|||
OnObjectBeingRemovedFromScene;
|
||||
m_Scene.EventManager.OnParcelPrimCountTainted +=
|
||||
OnParcelPrimCountTainted;
|
||||
m_Scene.EventManager.OnLandObjectAdded += delegate(ILandObject lo) { OnParcelPrimCountTainted(); };
|
||||
}
|
||||
|
||||
public void RegionLoaded(Scene scene)
|
||||
|
|
Loading…
Reference in New Issue