by design HUD objects are private
parent
b0f87fba1c
commit
9b78eb20c0
|
@ -7026,24 +7026,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
|
|
||||||
LSL_List AttachmentsList = new LSL_List();
|
|
||||||
|
|
||||||
ScenePresence av = World.GetScenePresence((UUID)id);
|
ScenePresence av = World.GetScenePresence((UUID)id);
|
||||||
|
|
||||||
string NOT_FOUND = "NOT_FOUND";
|
if (av == null || av.IsDeleted)
|
||||||
string NOT_ON_REGION = "NOT ON REGION";
|
return new LSL_List("NOT_FOUND");
|
||||||
|
|
||||||
if (av == null)
|
if (av.IsChildAgent || av.IsInTransit)
|
||||||
return new LSL_List(NOT_FOUND);
|
return new LSL_List("NOT_ON_REGION");
|
||||||
if (av.IsChildAgent)
|
|
||||||
return new LSL_List(NOT_ON_REGION);
|
|
||||||
|
|
||||||
List<SceneObjectGroup> AttachmentsKeys;
|
LSL_List AttachmentsList = new LSL_List();
|
||||||
|
List<SceneObjectGroup> Attachments;
|
||||||
|
|
||||||
AttachmentsKeys = av.GetAttachments();
|
Attachments = av.GetAttachments();
|
||||||
|
|
||||||
foreach (SceneObjectGroup AttachmentKey in AttachmentsKeys)
|
foreach (SceneObjectGroup Attachment in Attachments)
|
||||||
AttachmentsList.Add(new LSL_Key(AttachmentKey.FromItemID.ToString()));
|
{
|
||||||
|
if(Attachment.HasPrivateAttachmentPoint)
|
||||||
|
continue;
|
||||||
|
AttachmentsList.Add(new LSL_Key(Attachment.UUID.ToString()));
|
||||||
|
}
|
||||||
|
|
||||||
return AttachmentsList;
|
return AttachmentsList;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue