From bedebf94984dc577c5e2f51c6273704f6e77741c Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 29 Apr 2016 17:11:36 +0200 Subject: [PATCH] Prevent "Object->Take" from working on attachments. --- OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index edb881f6ca..1910a78ae3 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs @@ -2144,8 +2144,6 @@ namespace OpenSim.Region.Framework.Scenes foreach (uint localID in localIDs) { - - // Invalid id SceneObjectPart part = GetSceneObjectPart(localID); if (part == null) @@ -2168,6 +2166,8 @@ namespace OpenSim.Region.Framework.Scenes continue; SceneObjectGroup grp = part.ParentGroup; + if (grp.IsAttachment) + continue; // If child prims have invalid perms, fix them grp.AdjustChildPrimPermissions(false);