diff options
author | Matthew Breindel (Falcon) <falcon@lindenlab.com> | 2010-07-13 17:16:36 -0700 |
---|---|---|
committer | Matthew Breindel (Falcon) <falcon@lindenlab.com> | 2010-07-13 17:16:36 -0700 |
commit | 37fc4e42dd173d92abb31be83dbd04fa3b7b70fa (patch) | |
tree | 0355075f8fb41548989517abc44a129f73c4a545 /indra/newview/llinventoryfunctions.cpp | |
parent | a884f5c0c794777f33012a5ca318fd98bab32667 (diff) | |
parent | 75c70884dab91490613ee0c9b866346a00bc9ad9 (diff) |
Merge
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) |