diff options
author | SignpostMarv | 2012-09-06 10:40:26 +0100 |
---|---|---|
committer | BlueWall | 2012-09-06 06:32:56 -0400 |
commit | 4215877b4848bd185ec20b50118b36b53cbfd604 (patch) | |
tree | 406fadbb722df09ecf1dceda9f0d332a2abf9b07 /OpenSim/Region/Framework | |
parent | adding utility method for getting SceneObjectPart from scene (diff) | |
download | opensim-SC_OLD-4215877b4848bd185ec20b50118b36b53cbfd604.zip opensim-SC_OLD-4215877b4848bd185ec20b50118b36b53cbfd604.tar.gz opensim-SC_OLD-4215877b4848bd185ec20b50118b36b53cbfd604.tar.bz2 opensim-SC_OLD-4215877b4848bd185ec20b50118b36b53cbfd604.tar.xz |
adding utility method for getting SceneObjectGroup from scene
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 1771bf9..a2d553d 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -4582,6 +4582,18 @@ namespace OpenSim.Region.Framework.Scenes | |||
4582 | } | 4582 | } |
4583 | 4583 | ||
4584 | /// <summary> | 4584 | /// <summary> |
4585 | /// Attempt to get the SOG via its UUID | ||
4586 | /// </summary> | ||
4587 | /// <param name="fullID"></param> | ||
4588 | /// <param name="sog"></param> | ||
4589 | /// <returns></returns> | ||
4590 | public bool TryGetSceneObjectGroup(UUID fullID, out SceneObjectGroup sog) | ||
4591 | { | ||
4592 | sog = GetSceneObjectGroup(fullID); | ||
4593 | return sog != null; | ||
4594 | } | ||
4595 | |||
4596 | /// <summary> | ||
4585 | /// Get a prim by name from the scene (will return the first | 4597 | /// Get a prim by name from the scene (will return the first |
4586 | /// found, if there are more than one prim with the same name) | 4598 | /// found, if there are more than one prim with the same name) |
4587 | /// </summary> | 4599 | /// </summary> |