diff options
| author | cosmic-linden <111533034+cosmic-linden@users.noreply.github.com> | 2024-01-09 16:51:21 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-09 16:51:21 -0800 |
| commit | 5443a18ba654609f4a5086e3561b9085669d16c4 (patch) | |
| tree | 15f85c95d18cc79997badfb0395a7f73dc6ad5d0 /indra/newview/llinventoryfunctions.cpp | |
| parent | 983a3c7207bcb233fb5a1cfdfbed8b9a3f992a73 (diff) | |
| parent | 390a5031dcdbc6bf191f49a105021c8a707a9949 (diff) | |
Merge pull request #624 from secondlife/andreyk/SL-19555
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); |
