mantis 8508: ignore llAttachToAvatar if already attached
parent
1847a42a86
commit
3644879677
|
@ -3886,6 +3886,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
if (m_item.PermsGranter != m_host.OwnerID)
|
if (m_item.PermsGranter != m_host.OwnerID)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
SceneObjectGroup grp = m_host.ParentGroup;
|
||||||
|
if (grp == null || grp.IsDeleted || grp.IsAttachment)
|
||||||
|
return;
|
||||||
|
|
||||||
if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_ATTACH) != 0)
|
if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_ATTACH) != 0)
|
||||||
AttachToAvatar(attachmentPoint);
|
AttachToAvatar(attachmentPoint);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue