*Fixed bug causing parcel prim counts to stop updating.
parent
8c252ec416
commit
51d4d88985
|
@ -249,6 +249,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
protected virtual void RegisterDefaultSceneEvents()
|
protected virtual void RegisterDefaultSceneEvents()
|
||||||
{
|
{
|
||||||
m_eventManager.OnParcelPrimCountAdd += m_LandManager.addPrimToLandPrimCounts;
|
m_eventManager.OnParcelPrimCountAdd += m_LandManager.addPrimToLandPrimCounts;
|
||||||
|
m_eventManager.OnParcelPrimCountUpdate += this.addPrimsToParcelCounts;
|
||||||
m_eventManager.OnPermissionError += SendPermissionAlert;
|
m_eventManager.OnPermissionError += SendPermissionAlert;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1137,6 +1138,18 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
m_LandManager.landPrimCountTainted = false;
|
m_LandManager.landPrimCountTainted = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void addPrimsToParcelCounts()
|
||||||
|
{
|
||||||
|
foreach (EntityBase obj in Entities.Values)
|
||||||
|
{
|
||||||
|
if (obj is SceneObjectGroup)
|
||||||
|
{
|
||||||
|
m_eventManager.TriggerParcelPrimCountAdd((SceneObjectGroup)obj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Console Commands
|
#region Console Commands
|
||||||
|
|
Loading…
Reference in New Issue