mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
* Fixes endless loop in the Land Module when selecting any object.
* Fixes returning objects when the object owner hasn't been in the simulator since the simulator started up last.
This commit is contained in:
@@ -582,6 +582,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
||||
|
||||
public void UpdateLandPrimCounts()
|
||||
{
|
||||
ResetAllLandPrimCounts();
|
||||
foreach (EntityBase obj in m_scene.Entities.Values)
|
||||
{
|
||||
if (obj is SceneObjectGroup)
|
||||
@@ -589,6 +590,8 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
||||
m_scene.EventManager.TriggerParcelPrimCountAdd((SceneObjectGroup)obj);
|
||||
}
|
||||
}
|
||||
FinalizeLandPrimCountUpdate();
|
||||
landPrimCountTainted = false;
|
||||
}
|
||||
|
||||
public void PerformParcelPrimCountUpdate()
|
||||
|
||||
@@ -751,12 +751,15 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
||||
landData.ownerPrims = 0;
|
||||
landData.otherPrims = 0;
|
||||
landData.selectedPrims = 0;
|
||||
|
||||
|
||||
lock (primsOverMe)
|
||||
primsOverMe.Clear();
|
||||
}
|
||||
|
||||
public void addPrimToCount(SceneObjectGroup obj)
|
||||
{
|
||||
|
||||
LLUUID prim_owner = obj.OwnerID;
|
||||
int prim_count = obj.PrimCount;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user