Skip to content
Snippets Groups Projects
Commit 41ac3f8f authored by Igor Borovkov's avatar Igor Borovkov
Browse files

EXT-8134 FIXED added filtering wearables depending on expanded outfit (panel outfit edit)

Add More is clicked -> list view is shown filtered depending on the expanded tab (if no item is selected), default filtering when nothing is selected and all tabs are collapsed - by clothing

Reviewed by Vadim Savchuk https://codereview.productengine.com/secondlife/r/689/

--HG--
branch : product-engine
parent 589619d8
No related branches found
No related tags found
No related merge requests found
......@@ -726,24 +726,36 @@ void LLPanelOutfitEdit::filterWearablesBySelectedItem(void)
bool more_than_one_selected = ids.size() > 1;
bool is_dummy_item = (ids.size() && dynamic_cast<LLPanelDummyClothingListItem*>(mCOFWearables->getSelectedItem()));
//resetting selection if no item is selected or than one item is selected
if (nothing_selected || more_than_one_selected)
//expanded accordion tab determines filtering when no item is selected
if (nothing_selected)
{
if (nothing_selected)
{
showWearablesFolderView();
applyFolderViewFilter(FVIT_ALL);
}
showWearablesListView();
if (more_than_one_selected)
switch (mCOFWearables->getExpandedAccordionAssetType())
{
showWearablesListView();
applyListViewFilter(LVIT_ALL);
case LLAssetType::AT_OBJECT:
applyListViewFilter(LVIT_ATTACHMENT);
break;
case LLAssetType::AT_BODYPART:
applyListViewFilter(LVIT_BODYPART);
break;
case LLAssetType::AT_CLOTHING:
default:
applyListViewFilter(LVIT_CLOTHING);
break;
}
return;
}
//resetting selection if more than one item is selected
if (more_than_one_selected)
{
showWearablesListView();
applyListViewFilter(LVIT_ALL);
return;
}
//filter wearables by a type represented by a dummy item
if (one_selected && is_dummy_item)
......
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