Prevent "Object->Take" from working on attachments.

LSLKeyTest
Melanie Thielker 2016-04-29 17:11:36 +02:00
parent 8ef34a1bc5
commit bedebf9498
1 changed files with 2 additions and 2 deletions

View File

@ -2144,8 +2144,6 @@ namespace OpenSim.Region.Framework.Scenes
foreach (uint localID in localIDs) foreach (uint localID in localIDs)
{ {
// Invalid id // Invalid id
SceneObjectPart part = GetSceneObjectPart(localID); SceneObjectPart part = GetSceneObjectPart(localID);
if (part == null) if (part == null)
@ -2168,6 +2166,8 @@ namespace OpenSim.Region.Framework.Scenes
continue; continue;
SceneObjectGroup grp = part.ParentGroup; SceneObjectGroup grp = part.ParentGroup;
if (grp.IsAttachment)
continue;
// If child prims have invalid perms, fix them // If child prims have invalid perms, fix them
grp.AdjustChildPrimPermissions(false); grp.AdjustChildPrimPermissions(false);