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.avinationmerge
parent
4b47008d30
commit
47818a2db3
|
@ -1140,9 +1140,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// <param name="action"></param>
|
/// <param name="action"></param>
|
||||||
protected internal void ForEachSOG(Action<SceneObjectGroup> action)
|
protected internal void ForEachSOG(Action<SceneObjectGroup> action)
|
||||||
{
|
{
|
||||||
List<SceneObjectGroup> objlist = new List<SceneObjectGroup>(SceneObjectGroupsByFullID.Values);
|
List<EntityBase> objlist = Entities.GetAllByType<SceneObjectGroup>();
|
||||||
foreach (SceneObjectGroup obj in objlist)
|
foreach (EntityBase ent in objlist)
|
||||||
{
|
{
|
||||||
|
SceneObjectGroup obj = (SceneObjectGroup)ent;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
action(obj);
|
action(obj);
|
||||||
|
|
Loading…
Reference in New Issue