diff options
author | Dessie Linden <dessie@lindenlab.com> | 2010-07-13 05:27:27 -0700 |
---|---|---|
committer | Dessie Linden <dessie@lindenlab.com> | 2010-07-13 05:27:27 -0700 |
commit | c3099df719274556fede1a57bc42e555e5c89fbb (patch) | |
tree | c9b0379d1936736de93ae3dc2489e54dce96e604 /indra/newview/llinventoryfunctions.cpp | |
parent | 4ac2dbb82eeaa5ead25c0821abe443d86e0333f5 (diff) | |
parent | c8602b293517dfb4d5c6658ab235af9fe9932b7e (diff) |
Merged from viewer-release
Diffstat (limited to 'indra/newview/llinventoryfunctions.cpp')
-rw-r--r-- | indra/newview/llinventoryfunctions.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index 2d11337955..f20acbd016 100644 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -507,6 +507,19 @@ bool LLIsNotType::operator()(LLInventoryCategory* cat, LLInventoryItem* item) return TRUE; } +bool LLIsOfAssetType::operator()(LLInventoryCategory* cat, LLInventoryItem* item) +{ + if(mType == LLAssetType::AT_CATEGORY) + { + if(cat) return TRUE; + } + if(item) + { + if(item->getActualType() == mType) return TRUE; + } + return FALSE; +} + bool LLIsTypeWithPermissions::operator()(LLInventoryCategory* cat, LLInventoryItem* item) { if(mType == LLAssetType::AT_CATEGORY) |