aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 45bda63..62eb547 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -1165,5 +1165,22 @@ namespace OpenSim.Region.Environment.Scenes
1165 } 1165 }
1166 return LLUUID.Zero; 1166 return LLUUID.Zero;
1167 } 1167 }
1168
1169 public SceneObjectPart GetSceneObjectPart(uint localID)
1170 {
1171 bool hasPrim = false;
1172 foreach (EntityBase ent in Entities.Values)
1173 {
1174 if (ent is SceneObjectGroup)
1175 {
1176 hasPrim = ((SceneObjectGroup)ent).HasChildPrim(localID);
1177 if (hasPrim != false)
1178 {
1179 return ((SceneObjectGroup)ent).GetChildPart(localID);
1180 }
1181 }
1182 }
1183 return null;
1184 }
1168 } 1185 }
1169} 1186}