diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-11-15 22:15:03 +0200 |
---|---|---|
committer | akleshchev <117672381+akleshchev@users.noreply.github.com> | 2023-11-16 18:30:46 +0200 |
commit | fda96e36806dab544709ac87156949c3accc5cf8 (patch) | |
tree | f20d0df15a2409553b6ca740f8891292b81a4a1d /indra/newview/llinventoryfunctions.cpp | |
parent | 7ff358efc46a07c1ed3bc845c693d67c5eb95b69 (diff) |
SL-20575 When opening menu cache results and spread load over frames
Diffstat (limited to 'indra/newview/llinventoryfunctions.cpp')
-rw-r--r-- | indra/newview/llinventoryfunctions.cpp | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index a260b62c69..97568fede1 100644 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -840,23 +840,26 @@ bool get_is_category_and_children_removable(LLInventoryModel* model, const LLUUI item_array, LLInventoryModel::EXCLUDE_TRASH); - for (LLInventoryModel::item_array_t::value_type& item : item_array) + if (check_worn) { - // Disable delete from COF folder; have users explicitly choose "detach/take off", - // unless the item is not worn but in the COF (i.e. is bugged). - if (item) + for (LLInventoryModel::item_array_t::value_type& item : item_array) { - if (LLAppearanceMgr::instance().getIsProtectedCOFItem(item)) + // Disable delete/cut from COF folder; have users explicitly choose "detach/take off", + // unless the item is not worn but in the COF (i.e. is bugged). + if (item) { - if (get_is_item_worn(item)) + if (LLAppearanceMgr::instance().getIsProtectedCOFItem(item)) { - return false; + if (get_is_item_worn(item)) + { + return false; + } } - } - if (check_worn && !item->getIsLinkType() && get_is_item_worn(item)) - { - return false; + if (!item->getIsLinkType() && get_is_item_worn(item)) + { + return false; + } } } } |