diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-05-22 05:50:50 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-05-22 05:50:50 +0800 |
commit | 0a11db8b5d0ace1b83c1b542bc966913fecb3f2a (patch) | |
tree | 3ab0baf0cc0d0a281f21be67ffcae7bc770c17a1 /indra/newview/lloutfitgallery.cpp | |
parent | f900a9ae67c61b3e53c36c119440cbc3710a2f7c (diff) | |
parent | a31b7ae2419b4f644ddf559274f650e34212338e (diff) |
Merge tag 'Second_Life_Release#a31b7ae2-Second_Life_Release#a31b7ae-2025.04' into 2025.04
Diffstat (limited to 'indra/newview/lloutfitgallery.cpp')
-rw-r--r-- | indra/newview/lloutfitgallery.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/lloutfitgallery.cpp b/indra/newview/lloutfitgallery.cpp index b1d5cd9e16..b84b0b3a8c 100644 --- a/indra/newview/lloutfitgallery.cpp +++ b/indra/newview/lloutfitgallery.cpp @@ -793,6 +793,17 @@ void LLOutfitGallery::updateAddedCategory(LLUUID cat_id) LLViewerInventoryCategory *cat = gInventory.getCategory(cat_id); if (!cat) return; + if (!isOutfitFolder(cat)) + { + // Assume a subfolder that contains or will contain outfits, track it + const LLUUID outfits = gInventory.findCategoryUUIDForType(LLFolderType::FT_MY_OUTFITS); + mOutfitsObserver->addCategory(cat_id, [this, outfits]() + { + observerCallback(outfits); + }); + return; + } + std::string name = cat->getName(); LLOutfitGalleryItem* item = buildGalleryItem(name, cat_id); mOutfitMap.insert(LLOutfitGallery::outfit_map_value_t(cat_id, item)); |