dont try to check CanObjectEntry on a attachment in llSetPos()

LSLKeyTest
UbitUmarov 2016-07-03 19:49:53 +01:00
parent 58135ef52c
commit b3d8e35d67
1 changed files with 1 additions and 1 deletions

View File

@ -2680,7 +2680,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (part.ParentGroup.RootPart == part) if (part.ParentGroup.RootPart == part)
{ {
SceneObjectGroup parent = part.ParentGroup; SceneObjectGroup parent = part.ParentGroup;
if (!World.Permissions.CanObjectEntry(parent.UUID, false, (Vector3)toPos)) if (!parent.IsAttachment && !World.Permissions.CanObjectEntry(parent.UUID, false, (Vector3)toPos))
return; return;
parent.UpdateGroupPosition((Vector3)toPos); parent.UpdateGroupPosition((Vector3)toPos);
} }