adding utility method for getting SceneObjectGroup from scene

Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
0.7.4-extended
SignpostMarv 2012-09-06 10:40:26 +01:00 committed by Justin Clark-Casey (justincc)
parent b738b50cd6
commit c7c750d127
1 changed files with 12 additions and 0 deletions

View File

@ -4548,6 +4548,18 @@ namespace OpenSim.Region.Framework.Scenes
return m_sceneGraph.GetSceneObjectGroup(name); 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> /// <summary>
/// Get a prim by name from the scene (will return the first /// Get a prim by name from the scene (will return the first
/// found, if there are more than one prim with the same name) /// found, if there are more than one prim with the same name)