summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-04-25 13:51:23 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-04-25 13:51:23 +0300
commitc1a3c7b239dcde347403c818d4ad1eeedf45d280 (patch)
tree99cd65a086ec1006745571c62755a5bdc8b4fb75 /indra/newview
parent8166a8d8d480d63c645ead7cd81b1b0afda225b4 (diff)
SL-19533 Special COF handling #3
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llappearancemgr.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index 297403fc6c..d79525ec62 100644
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -4563,13 +4563,16 @@ protected:
void callAfterCOFFetch(nullary_func_t cb)
{
- if (AISAPI::isAvailable())
+ LLUUID cat_id = LLAppearanceMgr::instance().getCOF();
+ LLViewerInventoryCategory* cat = gInventory.getCategory(cat_id);
+ 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(); });
}
else
{
- LLUUID cat_id = LLAppearanceMgr::instance().getCOF();
+ // Assume that cache is present. Process like a normal folder.
callAfterCategoryFetch(cat_id, cb);
}
}