aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index d6aca31..c2f9fd2 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -860,6 +860,9 @@ namespace OpenSim.Region.Framework.Scenes
860 /// <returns>null if no scene object group containing that prim is found</returns> 860 /// <returns>null if no scene object group containing that prim is found</returns>
861 private SceneObjectGroup GetGroupByPrim(uint localID) 861 private SceneObjectGroup GetGroupByPrim(uint localID)
862 { 862 {
863 if (Entities.ContainsKey(localID))
864 return Entities[localID] as SceneObjectGroup;
865
863 //m_log.DebugFormat("Entered GetGroupByPrim with localID {0}", localID); 866 //m_log.DebugFormat("Entered GetGroupByPrim with localID {0}", localID);
864 List<EntityBase> EntityList = GetEntities(); 867 List<EntityBase> EntityList = GetEntities();
865 foreach (EntityBase ent in EntityList) 868 foreach (EntityBase ent in EntityList)