*Fixed bug causing parcel prim counts to stop updating.

afrisby
mingchen 2007-11-23 20:17:49 +00:00
parent 8c252ec416
commit 51d4d88985
1 changed files with 13 additions and 0 deletions

View File

@ -249,6 +249,7 @@ namespace OpenSim.Region.Environment.Scenes
protected virtual void RegisterDefaultSceneEvents()
{
m_eventManager.OnParcelPrimCountAdd += m_LandManager.addPrimToLandPrimCounts;
m_eventManager.OnParcelPrimCountUpdate += this.addPrimsToParcelCounts;
m_eventManager.OnPermissionError += SendPermissionAlert;
}
@ -1137,6 +1138,18 @@ namespace OpenSim.Region.Environment.Scenes
m_LandManager.landPrimCountTainted = false;
}
public void addPrimsToParcelCounts()
{
foreach (EntityBase obj in Entities.Values)
{
if (obj is SceneObjectGroup)
{
m_eventManager.TriggerParcelPrimCountAdd((SceneObjectGroup)obj);
}
}
}
#endregion
#region Console Commands