summaryrefslogtreecommitdiff
path: root/indra/newview/llappearancemgr.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-04-27 01:30:57 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-04-27 01:30:57 +0300
commit697d3be3c9906a6d578a961710fc43816b6adeae (patch)
tree22e65ad7410080d8307cfe42cddd21fd314b62c3 /indra/newview/llappearancemgr.cpp
parent0091fa0cbaba034da09d42d49f68c63f2cc7df14 (diff)
SL-19533 Implement subset variant of children request
Diffstat (limited to 'indra/newview/llappearancemgr.cpp')
-rw-r--r--indra/newview/llappearancemgr.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index d79525ec62..4133470973 100644
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -4568,7 +4568,18 @@ void callAfterCOFFetch(nullary_func_t cb)
if (cat->getVersion() == LLViewerInventoryCategory::VERSION_UNKNOWN && AISAPI::isAvailable())
{
// Assume that we have no relevant cache. Fetch cof, and items cof's links point to.
- AISAPI::FetchCOF([cb](const LLUUID& id) { cb(); });
+ AISAPI::FetchCOF([cb](const LLUUID& id)
+ {
+ cb();
+ LLUUID cat_id = LLAppearanceMgr::instance().getCOF();
+ LLViewerInventoryCategory* cat = gInventory.getCategory(cat_id);
+ if (cat)
+ {
+ cat->setFetching(LLViewerInventoryCategory::FETCH_NONE);
+ }
+ });
+ // Mark it so that background fetch won't request it if it didn't already
+ cat->setFetching(LLViewerInventoryCategory::FETCH_RECURSIVE);
}
else
{