From c7c750d127eefa306fc592af5519ba4585734244 Mon Sep 17 00:00:00 2001 From: SignpostMarv Date: Thu, 6 Sep 2012 10:40:26 +0100 Subject: [PATCH] adding utility method for getting SceneObjectGroup from scene Signed-off-by: BlueWall --- OpenSim/Region/Framework/Scenes/Scene.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 7512bd08e7..f2ae5dc8e2 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -4548,6 +4548,18 @@ namespace OpenSim.Region.Framework.Scenes return m_sceneGraph.GetSceneObjectGroup(name); } + /// + /// Attempt to get the SOG via its UUID + /// + /// + /// + /// + public bool TryGetSceneObjectGroup(UUID fullID, out SceneObjectGroup sog) + { + sog = GetSceneObjectGroup(fullID); + return sog != null; + } + /// /// Get a prim by name from the scene (will return the first /// found, if there are more than one prim with the same name)