diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-05-02 23:10:51 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-05-03 00:18:09 +0300 |
commit | db3e5afbfbbce73e8f8339e8b4f938f11023ca64 (patch) | |
tree | f21295e1ba85ebce17da26221788560ad26f6487 /indra/newview/llinventoryfunctions.cpp | |
parent | bbadb8b3904ba620dde598367493f34b6fcc3226 (diff) |
Viewer#1301 Implement Inventory Favorites Tab
Diffstat (limited to 'indra/newview/llinventoryfunctions.cpp')
-rw-r--r-- | indra/newview/llinventoryfunctions.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index 135dfa3519..81be2c1f24 100644 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -2663,6 +2663,20 @@ bool LLIsTypeWithPermissions::operator()(LLInventoryCategory* cat, LLInventoryIt return FALSE; } +bool LLFavoritesCollector::operator()(LLInventoryCategory* cat, + LLInventoryItem* item) +{ + if (item && item->getIsFavorite()) + { + return true; + } + if (cat && cat->getIsFavorite()) + { + return true; + } + return false; +} + bool LLBuddyCollector::operator()(LLInventoryCategory* cat, LLInventoryItem* item) { |