adding utility method for getting SceneObjectGroup from scene
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>integration
parent
d2e79e26d7
commit
4215877b48
|
@ -4581,6 +4581,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)
|
||||||
|
|
Loading…
Reference in New Issue