mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
*Fixed bug causing parcel prim counts to stop updating.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user