diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-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 | } |