diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index e2e697e..dde6ca6 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -430,34 +430,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
430 | 430 | ||
431 | return null; | 431 | return null; |
432 | } | 432 | } |
433 | |||
434 | /// <summary> | ||
435 | /// Update the user inventory to the attachment of an item | ||
436 | /// </summary> | ||
437 | /// <param name="att"></param> | ||
438 | /// <param name="sp"></param> | ||
439 | /// <param name="itemID"></param> | ||
440 | /// <param name="attachmentPoint"></param> | ||
441 | /// <returns></returns> | ||
442 | private UUID ShowAttachInUserInventory( | ||
443 | SceneObjectGroup att, IScenePresence sp, UUID itemID, uint attachmentPoint) | ||
444 | { | ||
445 | // m_log.DebugFormat( | ||
446 | // "[ATTACHMENTS MODULE]: Updating inventory of {0} to show attachment of {1} {2} (item ID {3}) at {4}", | ||
447 | // sp.Name, att.Name, att.LocalId, itemID, AttachmentPt); | ||
448 | |||
449 | if (!att.IsDeleted) | ||
450 | attachmentPoint = att.AttachmentPoint; | ||
451 | |||
452 | InventoryItemBase item = new InventoryItemBase(itemID, sp.UUID); | ||
453 | item = m_scene.InventoryService.GetItem(item); | ||
454 | |||
455 | bool changed = sp.Appearance.SetAttachment((int)attachmentPoint, itemID, item.AssetID); | ||
456 | if (changed && m_scene.AvatarFactory != null) | ||
457 | m_scene.AvatarFactory.QueueAppearanceSave(sp.UUID); | ||
458 | |||
459 | return att.UUID; | ||
460 | } | ||
461 | 433 | ||
462 | /// <summary> | 434 | /// <summary> |
463 | /// Update the user inventory to reflect an attachment | 435 | /// Update the user inventory to reflect an attachment |