diff options
author | Justin Clark-Casey (justincc) | 2011-09-06 00:36:38 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-09-06 00:36:38 +0100 |
commit | c6ec573d105b52f65e02077e8603a9b586884ecd (patch) | |
tree | a8353d6098190c780f3a1fd64ad5b60eb709b42b /OpenSim/Region/CoreModules | |
parent | get rid of the unused AttachmentsModule.ShowAttachInUserInventory() (diff) | |
download | opensim-SC_OLD-c6ec573d105b52f65e02077e8603a9b586884ecd.zip opensim-SC_OLD-c6ec573d105b52f65e02077e8603a9b586884ecd.tar.gz opensim-SC_OLD-c6ec573d105b52f65e02077e8603a9b586884ecd.tar.bz2 opensim-SC_OLD-c6ec573d105b52f65e02077e8603a9b586884ecd.tar.xz |
Get rid of the confusing version of IAttachmentsModule.RezSingleAttachmentFromInventory() with the updateInventoryStatus switch, since this is never called with false
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index dde6ca6..67969b7 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -326,12 +326,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
326 | public ISceneEntity RezSingleAttachmentFromInventory( | 326 | public ISceneEntity RezSingleAttachmentFromInventory( |
327 | IClientAPI remoteClient, UUID itemID, uint AttachmentPt) | 327 | IClientAPI remoteClient, UUID itemID, uint AttachmentPt) |
328 | { | 328 | { |
329 | return RezSingleAttachmentFromInventory(remoteClient, itemID, AttachmentPt, true); | ||
330 | } | ||
331 | |||
332 | public ISceneEntity RezSingleAttachmentFromInventory( | ||
333 | IClientAPI remoteClient, UUID itemID, uint AttachmentPt, bool updateInventoryStatus) | ||
334 | { | ||
335 | // m_log.DebugFormat( | 329 | // m_log.DebugFormat( |
336 | // "[ATTACHMENTS MODULE]: Rezzing attachment to point {0} from item {1} for {2}", | 330 | // "[ATTACHMENTS MODULE]: Rezzing attachment to point {0} from item {1} for {2}", |
337 | // (AttachmentPoint)AttachmentPt, itemID, remoteClient.Name); | 331 | // (AttachmentPoint)AttachmentPt, itemID, remoteClient.Name); |
@@ -352,11 +346,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
352 | 346 | ||
353 | SceneObjectGroup att = RezSingleAttachmentFromInventoryInternal(sp, itemID, UUID.Zero, AttachmentPt); | 347 | SceneObjectGroup att = RezSingleAttachmentFromInventoryInternal(sp, itemID, UUID.Zero, AttachmentPt); |
354 | 348 | ||
355 | if (updateInventoryStatus) | 349 | if (att == null) |
356 | { | 350 | DetachSingleAttachmentToInv(itemID, sp.ControllingClient); |
357 | if (att == null) | ||
358 | DetachSingleAttachmentToInv(itemID, sp.ControllingClient); | ||
359 | } | ||
360 | 351 | ||
361 | return att; | 352 | return att; |
362 | } | 353 | } |