Allow no-copy attachments to be worn without losing them

0.6.1-post-fixes
Melanie Thielker 2008-12-05 04:17:21 +00:00
parent 9d64709602
commit 1cad124b7d
1 changed files with 7 additions and 3 deletions

View File

@ -2194,8 +2194,6 @@ namespace OpenSim.Region.Environment.Scenes
{ {
group.ClearPartAttachmentData(); group.ClearPartAttachmentData();
} }
// Ghost prim if this is enabled!
//group.ApplyPhysics(m_physicalPrim);
} }
// Fire on_rez // Fire on_rez
@ -2208,8 +2206,14 @@ namespace OpenSim.Region.Environment.Scenes
if (!Permissions.BypassPermissions()) if (!Permissions.BypassPermissions())
{ {
if ((item.CurrentPermissions & (uint)PermissionMask.Copy) == 0) if ((item.CurrentPermissions & (uint)PermissionMask.Copy) == 0)
{
// If this is done on attachments, no
// copy ones will be lost, so avoid it
//
if (!attachment)
userInfo.DeleteItem(item.ID); userInfo.DeleteItem(item.ID);
} }
}
return rootPart.ParentGroup; return rootPart.ParentGroup;
} }