A little hack to see if this fixes the problems with ~20% of SOG's becoming phantom after an import to megaregions.

This commit is contained in:
Diva Canto
2009-09-29 07:54:56 -07:00
parent 77f5e41631
commit bc892c1d4c
3 changed files with 42 additions and 1 deletions

View File

@@ -1134,6 +1134,23 @@ namespace OpenSim.Region.Framework.Scenes
}
}
protected internal void ForEachSOG(Action<SceneObjectGroup> action)
{
List<SceneObjectGroup> objlist = new List<SceneObjectGroup>(SceneObjectGroupsByFullID.Values);
foreach (SceneObjectGroup obj in objlist)
{
try
{
action(obj);
}
catch (Exception e)
{
// Catch it and move on. This includes situations where splist has inconsistent info
m_log.WarnFormat("[SCENE]: Problem processing action in ForEachSOG: ", e.Message);
}
}
}
#endregion
#region Client Event handlers