diff options
author | UbitUmarov | 2019-03-28 02:32:36 +0000 |
---|---|---|
committer | UbitUmarov | 2019-03-28 02:32:36 +0000 |
commit | 3644879677a53d1d18319b826050949a6950a2a9 (patch) | |
tree | 89da2ad3e1857d336019253922f845f1044f05fe /OpenSim/Region/ScriptEngine/Shared | |
parent | changes on teleports v7 (diff) | |
download | opensim-SC-3644879677a53d1d18319b826050949a6950a2a9.zip opensim-SC-3644879677a53d1d18319b826050949a6950a2a9.tar.gz opensim-SC-3644879677a53d1d18319b826050949a6950a2a9.tar.bz2 opensim-SC-3644879677a53d1d18319b826050949a6950a2a9.tar.xz |
mantis 8508: ignore llAttachToAvatar if already attached
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index ba35b55..45efa77 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3886,6 +3886,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3886 | if (m_item.PermsGranter != m_host.OwnerID) | 3886 | if (m_item.PermsGranter != m_host.OwnerID) |
3887 | return; | 3887 | return; |
3888 | 3888 | ||
3889 | SceneObjectGroup grp = m_host.ParentGroup; | ||
3890 | if (grp == null || grp.IsDeleted || grp.IsAttachment) | ||
3891 | return; | ||
3892 | |||
3889 | if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_ATTACH) != 0) | 3893 | if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_ATTACH) != 0) |
3890 | AttachToAvatar(attachmentPoint); | 3894 | AttachToAvatar(attachmentPoint); |
3891 | } | 3895 | } |