adding utility method for getting SceneObjectPart from scene

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

View File

@ -4624,6 +4624,18 @@ namespace OpenSim.Region.Framework.Scenes
return m_sceneGraph.GetSceneObjectPart(fullID); return m_sceneGraph.GetSceneObjectPart(fullID);
} }
/// <summary>
/// Attempt to get a prim via its UUID
/// </summary>
/// <param name="fullID"></param>
/// <param name="sop"></param>
/// <returns></returns>
public bool TryGetSceneObjectPart(UUID fullID, out SceneObjectPart sop)
{
sop = GetSceneObjectPart(fullID);
return sop != null;
}
/// <summary> /// <summary>
/// Get a scene object group that contains the prim with the given local id /// Get a scene object group that contains the prim with the given local id
/// </summary> /// </summary>