mantis 8508: ignore llAttachToAvatar if already attached

0.9.1.0-post-fixes
UbitUmarov 2019-03-28 02:32:36 +00:00
parent 1847a42a86
commit 3644879677
1 changed files with 4 additions and 0 deletions

View File

@ -3886,6 +3886,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (m_item.PermsGranter != m_host.OwnerID)
return;
SceneObjectGroup grp = m_host.ParentGroup;
if (grp == null || grp.IsDeleted || grp.IsAttachment)
return;
if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_ATTACH) != 0)
AttachToAvatar(attachmentPoint);
}