summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorymodel.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-03-17 22:42:14 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-03-17 22:42:14 +0200
commit4f9f149939cfd79ba6d18ed90202b29225c2969c (patch)
tree269282d209ac331adf8bcbbf0a9fcc0a6f293f06 /indra/newview/llinventorymodel.cpp
parent9ef9efaa0e843054a18a3957d64499a2ef8b4700 (diff)
SL-18629 Try fetching inventory on BulkUpdateInventory to get missing data
Diffstat (limited to 'indra/newview/llinventorymodel.cpp')
-rw-r--r--indra/newview/llinventorymodel.cpp10
1 files changed, 10 insertions, 0 deletions
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();