adding utility method for getting SceneObjectGroup from scene

Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
integration
SignpostMarv 2012-09-06 10:40:26 +01:00 committed by BlueWall
parent ef574d3a29
commit ba21b096e4
1 changed files with 12 additions and 0 deletions

View File

@ -4581,6 +4581,18 @@ namespace OpenSim.Region.Framework.Scenes
return m_sceneGraph.GetSceneObjectGroup(name);
}
/// <summary>
/// Attempt to get the SOG via its UUID
/// </summary>
/// <param name="fullID"></param>
/// <param name="sog"></param>
/// <returns></returns>
public bool TryGetSceneObjectGroup(UUID fullID, out SceneObjectGroup sog)
{
sog = GetSceneObjectGroup(fullID);
return sog != null;
}
/// <summary>
/// Get a prim by name from the scene (will return the first
/// found, if there are more than one prim with the same name)