diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index 46d040f..d1792d7 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -375,16 +375,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
375 | } | 375 | } |
376 | part.ParentGroup.DetachToGround(); | 376 | part.ParentGroup.DetachToGround(); |
377 | 377 | ||
378 | // If the item is no-copy we need to delete it from inventory | 378 | List<UUID> uuids = new List<UUID>(); |
379 | InventoryItemBase item = m_scene.InventoryService.GetItem(new InventoryItemBase(itemID)); | 379 | uuids.Add(inventoryID); |
380 | if (item != null && (item.CurrentPermissions & (uint)PermissionMask.Copy) == 0) | 380 | m_scene.InventoryService.DeleteItems(remoteClient.AgentId, uuids); |
381 | { | 381 | remoteClient.SendRemoveInventoryItem(inventoryID); |
382 | List<UUID> uuids = new List<UUID>(); | 382 | } |
383 | uuids.Add(inventoryID); | ||
384 | m_scene.InventoryService.DeleteItems(remoteClient.AgentId, uuids); | ||
385 | remoteClient.SendRemoveInventoryItem(inventoryID); | ||
386 | } | ||
387 | } | ||
388 | 383 | ||
389 | m_scene.EventManager.TriggerOnAttach(part.ParentGroup.LocalId, itemID, UUID.Zero); | 384 | m_scene.EventManager.TriggerOnAttach(part.ParentGroup.LocalId, itemID, UUID.Zero); |
390 | } | 385 | } |