From 06676657967581bb5375ce598167975222890d64 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Wed, 23 Mar 2022 10:27:07 -0400 Subject: [PATCH] Improve suitcase folder support --- indra/newview/llinventoryfilter.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/indra/newview/llinventoryfilter.cpp b/indra/newview/llinventoryfilter.cpp index 6a1e5973d23..8dbd7f6d7d0 100644 --- a/indra/newview/llinventoryfilter.cpp +++ b/indra/newview/llinventoryfilter.cpp @@ -278,7 +278,11 @@ bool LLInventoryFilter::checkFolder(const LLUUID& folder_id) const if (!cat) return folder_id.isNull(); LLFolderType::EType cat_type = cat->getPreferredType(); - if (cat_type != LLFolderType::FT_NONE && (1LL << cat_type & mFilterOps.mFilterCategoryTypes) == U64(0)) + if (cat_type == LLFolderType::FT_SUITCASE) + { + return true; // suitcase will always be shown + } + if (cat_type != LLFolderType::FT_NONE && (1ULL << cat_type & mFilterOps.mFilterCategoryTypes) == U64(0)) return false; } -- GitLab