diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-01-10 01:43:36 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-01-10 01:43:36 +0200 |
commit | 390a5031dcdbc6bf191f49a105021c8a707a9949 (patch) | |
tree | 15f85c95d18cc79997badfb0395a7f73dc6ad5d0 /indra/newview/llinventoryfunctions.cpp | |
parent | 983a3c7207bcb233fb5a1cfdfbed8b9a3f992a73 (diff) |
SL-19555 Fix picker failing to highlight default material in inventory
Diffstat (limited to 'indra/newview/llinventoryfunctions.cpp')
-rw-r--r-- | indra/newview/llinventoryfunctions.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index 4aeacae6ed..207dd692a8 100644 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -2554,6 +2554,12 @@ bool LLIsOfAssetType::operator()(LLInventoryCategory* cat, LLInventoryItem* item return FALSE; } +bool LLAssetIDAndTypeMatches::operator()(LLInventoryCategory* cat, LLInventoryItem* item) +{ + if (!item) return false; + return (item->getActualType() == mType && item->getAssetUUID() == mAssetID); +} + bool LLIsValidItemLink::operator()(LLInventoryCategory* cat, LLInventoryItem* item) { LLViewerInventoryItem *vitem = dynamic_cast<LLViewerInventoryItem*>(item); |