aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-09-06 00:32:52 +0100
committerJustin Clark-Casey (justincc)2011-09-06 00:32:52 +0100
commit05a4bedc305a299efaf89c881b7dafbe25ed23a6 (patch)
tree2aa41beb2a779f472db736baf41d7477e97b9935 /OpenSim
parentStop the pointless double setting of every attachment in AvatarAppearance. (diff)
downloadopensim-SC_OLD-05a4bedc305a299efaf89c881b7dafbe25ed23a6.zip
opensim-SC_OLD-05a4bedc305a299efaf89c881b7dafbe25ed23a6.tar.gz
opensim-SC_OLD-05a4bedc305a299efaf89c881b7dafbe25ed23a6.tar.bz2
opensim-SC_OLD-05a4bedc305a299efaf89c881b7dafbe25ed23a6.tar.xz
get rid of the unused AttachmentsModule.ShowAttachInUserInventory()
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs28
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