diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-06-11 12:59:26 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-06-11 12:59:26 +0100 |
commit | b228915d1f45dc6d2c88a9381957b904410428f8 (patch) | |
tree | 19146a241fd0d0ac8d42b929728959f7d323101c /indra/newview/llinventoryfunctions.h | |
parent | 51f77668153ec3d5b8b7a73beef6f718e65be568 (diff) | |
parent | c83a0105080981fd78ce3276e85837f8849176be (diff) |
merge from PE's viewer-public
Diffstat (limited to 'indra/newview/llinventoryfunctions.h')
-rw-r--r-- | indra/newview/llinventoryfunctions.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llinventoryfunctions.h b/indra/newview/llinventoryfunctions.h index 33b52cfd5e..c82ebd1439 100644 --- a/indra/newview/llinventoryfunctions.h +++ b/indra/newview/llinventoryfunctions.h @@ -324,6 +324,19 @@ private: LLWearableType::EType mWearableType; }; +/** Filter out wearables-links */ +class LLFindActualWearablesOfType : public LLFindWearablesOfType +{ +public: + LLFindActualWearablesOfType(LLWearableType::EType type) : LLFindWearablesOfType(type) {} + virtual ~LLFindActualWearablesOfType() {} + virtual bool operator()(LLInventoryCategory* cat, LLInventoryItem* item) + { + if (item && item->getIsLinkType()) return false; + return LLFindWearablesOfType::operator()(cat, item); + } +}; + // Find worn items. class LLFindWorn : public LLInventoryCollectFunctor { |