aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
authorMW2007-08-22 17:46:23 +0000
committerMW2007-08-22 17:46:23 +0000
commit283468caa08af3a38126fa407bcd472a8d45c0fb (patch)
treed01c956bab206c8becf563c2d02a5e56bb2d8507 /OpenSim/Region/Environment/Scenes/Scene.cs
parentMade SceneObjectGroup.GetChildPrim() public, for now so that script engine ca... (diff)
downloadopensim-SC-283468caa08af3a38126fa407bcd472a8d45c0fb.zip
opensim-SC-283468caa08af3a38126fa407bcd472a8d45c0fb.tar.gz
opensim-SC-283468caa08af3a38126fa407bcd472a8d45c0fb.tar.bz2
opensim-SC-283468caa08af3a38126fa407bcd472a8d45c0fb.tar.xz
Added Scene.GetSceneObjectPart(uint localID)
Diffstat (limited to '')
-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}