aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-10-24 04:10:22 +0100
committerJustin Clark-Casey (justincc)2012-10-24 04:10:22 +0100
commit81aeecc90723658187668baa49bd168b7b333afb (patch)
tree11e62ae375450e7d8d500565e29d05cc9b0b4ec7 /OpenSim/Region/Framework/Scenes
parentGet "save oar" and "save iar" to tell you in a more friendly manner if the fi... (diff)
downloadopensim-SC_OLD-81aeecc90723658187668baa49bd168b7b333afb.zip
opensim-SC_OLD-81aeecc90723658187668baa49bd168b7b333afb.tar.gz
opensim-SC_OLD-81aeecc90723658187668baa49bd168b7b333afb.tar.bz2
opensim-SC_OLD-81aeecc90723658187668baa49bd168b7b333afb.tar.xz
Allow "show object", "show part", "dump object" and "delete object" to accept a local ID as well as a UUID.
This means that the sub-commands are now id rather than uuid, e.g. show object id
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs13
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs24
2 files changed, 36 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 5f45529..532598a 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -4688,13 +4688,24 @@ namespace OpenSim.Region.Framework.Scenes
4688 /// Get a group via its UUID 4688 /// Get a group via its UUID
4689 /// </summary> 4689 /// </summary>
4690 /// <param name="fullID"></param> 4690 /// <param name="fullID"></param>
4691 /// <returns>null if no group with that name exists</returns> 4691 /// <returns>null if no group with that id exists</returns>
4692 public SceneObjectGroup GetSceneObjectGroup(UUID fullID) 4692 public SceneObjectGroup GetSceneObjectGroup(UUID fullID)
4693 { 4693 {
4694 return m_sceneGraph.GetSceneObjectGroup(fullID); 4694 return m_sceneGraph.GetSceneObjectGroup(fullID);
4695 } 4695 }
4696 4696
4697 /// <summary> 4697 /// <summary>
4698 /// Get a group via its local ID
4699 /// </summary>
4700 /// <remarks>This will only return a group if the local ID matches a root part</remarks>
4701 /// <param name="localID"></param>
4702 /// <returns>null if no group with that id exists</returns>
4703 public SceneObjectGroup GetSceneObjectGroup(uint localID)
4704 {
4705 return m_sceneGraph.GetSceneObjectGroup(localID);
4706 }
4707
4708 /// <summary>
4698 /// Get a group by name from the scene (will return the first 4709 /// Get a group by name from the scene (will return the first
4699 /// found, if there are more than one prim with the same name) 4710 /// found, if there are more than one prim with the same name)
4700 /// </summary> 4711 /// </summary>
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index 209a770..a4383fd 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -983,6 +983,30 @@ namespace OpenSim.Region.Framework.Scenes
983 } 983 }
984 984
985 /// <summary> 985 /// <summary>
986 /// Get a group in the scene
987 /// </summary>
988 /// <remarks>
989 /// This will only return a group if the local ID matches the root part, not other parts.
990 /// </remarks>
991 /// <param name="localID">Local id of the root part of the group</param>
992 /// <returns>null if no such group was found</returns>
993 protected internal SceneObjectGroup GetSceneObjectGroup(uint localID)
994 {
995 lock (SceneObjectGroupsByLocalPartID)
996 {
997 if (SceneObjectGroupsByLocalPartID.ContainsKey(localID))
998 {
999 SceneObjectGroup so = SceneObjectGroupsByLocalPartID[localID];
1000
1001 if (so.LocalId == localID)
1002 return so;
1003 }
1004 }
1005
1006 return null;
1007 }
1008
1009 /// <summary>
986 /// Get a group by name from the scene (will return the first 1010 /// Get a group by name from the scene (will return the first
987 /// found, if there are more than one prim with the same name) 1011 /// found, if there are more than one prim with the same name)
988 /// </summary> 1012 /// </summary>