mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
mantis 8508: ignore llAttachToAvatar if already attached
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user