SL-19536 SL-19652 Fix inventory fetching

meow-7.2.2
Andrey Kleshchev 2023-05-10 18:41:55 +03:00
parent 109141a9bb
commit 42f16180a9
1 changed files with 3 additions and 2 deletions

View File

@ -437,9 +437,10 @@ void LLInventoryModelBackgroundFetch::bulkFetch()
{
const LLViewerInventoryCategory * cat(gInventory.getCategory(cat_id));
if (cat && std::find(all_cats.begin(), all_cats.end(), cat_id) == all_cats.end())
if (cat)
{
if (LLViewerInventoryCategory::VERSION_UNKNOWN == cat->getVersion())
if (LLViewerInventoryCategory::VERSION_UNKNOWN == cat->getVersion()
&& std::find(all_cats.begin(), all_cats.end(), cat_id) == all_cats.end())
{
LLSD folder_sd;
folder_sd["folder_id"] = cat->getUUID();