diff options
| author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2025-01-29 01:06:31 +0200 |
|---|---|---|
| committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2025-04-11 00:33:13 +0300 |
| commit | dab8b9c62300e897c9b3f5826cdc6419c64ee1a5 (patch) | |
| tree | 8f568c0dbf97d83aabef5489fcd8b6a7152a244b /indra/newview/llinventorybridge.cpp | |
| parent | 154d15d42d4ca200dec9e404464cf86eaa384a32 (diff) | |
#3383 'InventoryAddAttachmentBehavior' setting should affect inventory panel in List view; update persistence of new settings
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
| -rw-r--r-- | indra/newview/llinventorybridge.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 7480956fab..8417bdb234 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -6939,7 +6939,8 @@ void LLObjectBridge::performAction(LLInventoryModel* model, std::string action) item = (LLViewerInventoryItem*)gInventory.getItem(object_id); if(item && gInventory.isObjectDescendentOf(object_id, gInventory.getRootFolderID())) { - rez_attachment(item, NULL, true); // Replace if "Wear"ing. + static LLCachedControl<bool> replace_item(gSavedSettings, "InventoryAddAttachmentBehavior", false); + rez_attachment(item, NULL, ("attach" == action) ? replace_item() : true); // Replace if "Wear"ing. } else if(item && item->isFinished()) { |
