From 4f9f149939cfd79ba6d18ed90202b29225c2969c Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Fri, 17 Mar 2023 22:42:14 +0200 Subject: SL-18629 Try fetching inventory on BulkUpdateInventory to get missing data --- indra/newview/llinventorymodel.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'indra') diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp index 65690228e7..43bfaf454c 100644 --- a/indra/newview/llinventorymodel.cpp +++ b/indra/newview/llinventorymodel.cpp @@ -3811,10 +3811,20 @@ void LLInventoryModel::processBulkUpdateInventory(LLMessageSystem* msg, void**) for (cat_array_t::iterator cit = folders.begin(); cit != folders.end(); ++cit) { gInventory.updateCategory(*cit); + + // Temporary workaround: just fetch the item using AIS to get missing fields. + // If this works fine we might want to extract ids only from the message + // then use AIS as a primary fetcher + AISAPI::FetchCategoryChildren((*cit)->getUUID(), AISAPI::INVENTORY, false); } for (item_array_t::iterator iit = items.begin(); iit != items.end(); ++iit) { gInventory.updateItem(*iit); + + // Temporary workaround: just fetch the item using AIS to get missing fields. + // If this works fine we might want to extract ids only from the message + // then use AIS as a primary fetcher + AISAPI::FetchItem((*iit)->getUUID(), AISAPI::INVENTORY, false); } gInventory.notifyObservers(); -- cgit v1.2.3