Added Scene.GetSceneObjectPart(uint localID)

afrisby
MW 2007-08-22 17:46:23 +00:00
parent 001d5a5c92
commit 283468caa0
1 changed files with 17 additions and 0 deletions

View File

@ -1165,5 +1165,22 @@ namespace OpenSim.Region.Environment.Scenes
} }
return LLUUID.Zero; return LLUUID.Zero;
} }
public SceneObjectPart GetSceneObjectPart(uint localID)
{
bool hasPrim = false;
foreach (EntityBase ent in Entities.Values)
{
if (ent is SceneObjectGroup)
{
hasPrim = ((SceneObjectGroup)ent).HasChildPrim(localID);
if (hasPrim != false)
{
return ((SceneObjectGroup)ent).GetChildPart(localID);
}
}
}
return null;
}
} }
} }