mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Fix a horrible bug in SG, where iteration of scene objects is carried
out in a fashion that causes the delegate to be invoked once per child prim for a given group.
This commit is contained in:
@@ -1140,9 +1140,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// <param name="action"></param>
|
||||
protected internal void ForEachSOG(Action<SceneObjectGroup> action)
|
||||
{
|
||||
List<SceneObjectGroup> objlist = new List<SceneObjectGroup>(SceneObjectGroupsByFullID.Values);
|
||||
foreach (SceneObjectGroup obj in objlist)
|
||||
List<EntityBase> objlist = Entities.GetAllByType<SceneObjectGroup>();
|
||||
foreach (EntityBase ent in objlist)
|
||||
{
|
||||
SceneObjectGroup obj = (SceneObjectGroup)ent;
|
||||
|
||||
try
|
||||
{
|
||||
action(obj);
|
||||
|
||||
Reference in New Issue
Block a user