Skip to content
Snippets Groups Projects
Commit 9cddfc5a authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-5443 FIXED Appearance menu does not display gestures in outfit

parent 41d2a60c
No related branches found
No related tags found
No related merge requests found
...@@ -1869,7 +1869,7 @@ bool LLAppearanceMgr::canAddWearables(const uuid_vec_t& item_ids) ...@@ -1869,7 +1869,7 @@ bool LLAppearanceMgr::canAddWearables(const uuid_vec_t& item_ids)
{ {
++n_clothes; ++n_clothes;
} }
else if (item->getType() == LLAssetType::AT_BODYPART) else if (item->getType() == LLAssetType::AT_BODYPART || item->getType() == LLAssetType::AT_GESTURE)
{ {
return isAgentAvatarValid(); return isAgentAvatarValid();
} }
......
...@@ -483,7 +483,7 @@ void LLCOFWearables::populateAttachmentsAndBodypartsLists(const LLInventoryModel ...@@ -483,7 +483,7 @@ void LLCOFWearables::populateAttachmentsAndBodypartsLists(const LLInventoryModel
const LLAssetType::EType item_type = item->getType(); const LLAssetType::EType item_type = item->getType();
if (item_type == LLAssetType::AT_CLOTHING) continue; if (item_type == LLAssetType::AT_CLOTHING) continue;
LLPanelInventoryListItemBase* item_panel = NULL; LLPanelInventoryListItemBase* item_panel = NULL;
if (item_type == LLAssetType::AT_OBJECT) if (item_type == LLAssetType::AT_OBJECT || item_type == LLAssetType::AT_GESTURE)
{ {
item_panel = buildAttachemntListItem(item); item_panel = buildAttachemntListItem(item);
mAttachments->addItem(item_panel, item->getUUID(), ADD_BOTTOM, false); mAttachments->addItem(item_panel, item->getUUID(), ADD_BOTTOM, false);
......
...@@ -1059,6 +1059,9 @@ void LLPanelOutfitEdit::filterWearablesBySelectedItem(void) ...@@ -1059,6 +1059,9 @@ void LLPanelOutfitEdit::filterWearablesBySelectedItem(void)
case LLAssetType::AT_BODYPART: case LLAssetType::AT_BODYPART:
applyListViewFilter(LVIT_BODYPART); applyListViewFilter(LVIT_BODYPART);
break; break;
case LLAssetType::AT_GESTURE:
applyListViewFilter(LVIT_GESTURES);
break;
case LLAssetType::AT_CLOTHING: case LLAssetType::AT_CLOTHING:
default: default:
applyListViewFilter(LVIT_CLOTHING); applyListViewFilter(LVIT_CLOTHING);
......
...@@ -80,6 +80,7 @@ public: ...@@ -80,6 +80,7 @@ public:
{ {
LVIT_ALL = 0, LVIT_ALL = 0,
LVIT_CLOTHING, LVIT_CLOTHING,
LVIT_GESTURES,
LVIT_BODYPART, LVIT_BODYPART,
LVIT_ATTACHMENT, LVIT_ATTACHMENT,
LVIT_SHAPE, LVIT_SHAPE,
......
...@@ -131,7 +131,7 @@ protected: ...@@ -131,7 +131,7 @@ protected:
{ {
bp_selected = true; bp_selected = true;
} }
else if (type == LLAssetType::AT_OBJECT) else if (type == LLAssetType::AT_OBJECT || type == LLAssetType::AT_GESTURE)
{ {
attachments_selected = true; attachments_selected = true;
} }
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include "llappearancemgr.h" #include "llappearancemgr.h"
#include "llinventoryfunctions.h" #include "llinventoryfunctions.h"
#include "llinventoryicon.h" #include "llinventoryicon.h"
#include "llgesturemgr.h"
#include "lltransutil.h" #include "lltransutil.h"
#include "llviewerattachmenu.h" #include "llviewerattachmenu.h"
#include "llvoavatarself.h" #include "llvoavatarself.h"
...@@ -55,7 +56,8 @@ bool LLFindOutfitItems::operator()(LLInventoryCategory* cat, ...@@ -55,7 +56,8 @@ bool LLFindOutfitItems::operator()(LLInventoryCategory* cat,
{ {
if((item->getType() == LLAssetType::AT_CLOTHING) if((item->getType() == LLAssetType::AT_CLOTHING)
|| (item->getType() == LLAssetType::AT_BODYPART) || (item->getType() == LLAssetType::AT_BODYPART)
|| (item->getType() == LLAssetType::AT_OBJECT)) || (item->getType() == LLAssetType::AT_OBJECT)
|| (item->getType() == LLAssetType::AT_GESTURE))
{ {
return TRUE; return TRUE;
} }
...@@ -491,6 +493,7 @@ LLWearableItemTypeNameComparator::LLWearableItemTypeNameComparator() ...@@ -491,6 +493,7 @@ LLWearableItemTypeNameComparator::LLWearableItemTypeNameComparator()
mWearableOrder[LLAssetType::AT_CLOTHING] = LLWearableTypeOrder(ORDER_RANK_1, false, false); mWearableOrder[LLAssetType::AT_CLOTHING] = LLWearableTypeOrder(ORDER_RANK_1, false, false);
mWearableOrder[LLAssetType::AT_OBJECT] = LLWearableTypeOrder(ORDER_RANK_2, true, true); mWearableOrder[LLAssetType::AT_OBJECT] = LLWearableTypeOrder(ORDER_RANK_2, true, true);
mWearableOrder[LLAssetType::AT_BODYPART] = LLWearableTypeOrder(ORDER_RANK_3, false, true); mWearableOrder[LLAssetType::AT_BODYPART] = LLWearableTypeOrder(ORDER_RANK_3, false, true);
mWearableOrder[LLAssetType::AT_GESTURE] = LLWearableTypeOrder(ORDER_RANK_4, true, false);
} }
void LLWearableItemTypeNameComparator::setOrder(LLAssetType::EType items_of_type, LLWearableItemTypeNameComparator::ETypeListOrder order_priority, bool sort_asset_items_by_name, bool sort_wearable_items_by_name) void LLWearableItemTypeNameComparator::setOrder(LLAssetType::EType items_of_type, LLWearableItemTypeNameComparator::ETypeListOrder order_priority, bool sort_asset_items_by_name, bool sort_wearable_items_by_name)
...@@ -989,6 +992,10 @@ void LLWearableItemsList::ContextMenu::updateMask(U32& mask, LLAssetType::EType ...@@ -989,6 +992,10 @@ void LLWearableItemsList::ContextMenu::updateMask(U32& mask, LLAssetType::EType
{ {
mask |= MASK_ATTACHMENT; mask |= MASK_ATTACHMENT;
} }
else if (at == LLAssetType::AT_GESTURE)
{
mask |= MASK_GESTURE;
}
else else
{ {
mask |= MASK_UNKNOWN; mask |= MASK_UNKNOWN;
......
...@@ -310,6 +310,7 @@ public: ...@@ -310,6 +310,7 @@ public:
ORDER_RANK_1 = 1, ORDER_RANK_1 = 1,
ORDER_RANK_2, ORDER_RANK_2,
ORDER_RANK_3, ORDER_RANK_3,
ORDER_RANK_4,
ORDER_RANK_UNKNOWN ORDER_RANK_UNKNOWN
}; };
...@@ -419,7 +420,8 @@ public: ...@@ -419,7 +420,8 @@ public:
MASK_CLOTHING = 0x01, MASK_CLOTHING = 0x01,
MASK_BODYPART = 0x02, MASK_BODYPART = 0x02,
MASK_ATTACHMENT = 0x04, MASK_ATTACHMENT = 0x04,
MASK_UNKNOWN = 0x08, MASK_GESTURE = 0x08,
MASK_UNKNOWN = 0x16,
}; };
/* virtual */ LLContextMenu* createMenu(); /* virtual */ LLContextMenu* createMenu();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment