adding utility method for getting SceneObjectGroup from scene
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>0.7.4-extended
parent
b738b50cd6
commit
c7c750d127
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue