summaryrefslogtreecommitdiff
path: root/indra/newview/llappearancemgr.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-04-25 04:46:42 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-04-27 00:39:50 +0300
commitcea6eeeede9f687ca195cc9b9e778fd6784afbe2 (patch)
treee3cf8984becf11665feef60c2dae7a57894f955c /indra/newview/llappearancemgr.cpp
parent384d694aba523218490ec48c22d97b63acbffd6f (diff)
viewer#1300 'Star' favorites in inventory
image is WIP
Diffstat (limited to 'indra/newview/llappearancemgr.cpp')
-rw-r--r--indra/newview/llappearancemgr.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index c84657cf7a..13f56de60d 100644
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -2037,7 +2037,7 @@ bool LLAppearanceMgr::getCanReplaceCOF(const LLUUID& outfit_cat_id)
}
// Moved from LLWearableList::ContextMenu for wider utility.
-bool LLAppearanceMgr::canAddWearables(const uuid_vec_t& item_ids) const
+bool LLAppearanceMgr::canAddWearables(const uuid_vec_t& item_ids, bool warn_on_type_mismarch) const
{
// TODO: investigate wearables may not be loaded at this point EXT-8231
@@ -2065,9 +2065,12 @@ bool LLAppearanceMgr::canAddWearables(const uuid_vec_t& item_ids) const
{
return isAgentAvatarValid();
}
- else
- {
- LL_WARNS() << "Unexpected wearable type" << LL_ENDL;
+ else
+ {
+ if (warn_on_type_mismarch)
+ {
+ LL_WARNS() << "Unexpected wearable type" << LL_ENDL;
+ }
return false;
}
}