summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
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);
}
}