Skip to content
Snippets Groups Projects
Commit 863e380f authored by Vadim Savchuk's avatar Vadim Savchuk
Browse files

EXT-8576 FIXED Only attachments are worn if multi-select items on 'My Outfits'...

EXT-8576 FIXED Only attachments are worn if multi-select items on 'My Outfits' tab and press 'Wear' button.

Reason: avatar appearance was not updated if the last selected item was an attachment.
Fix: make sure appearance is updated afterwards, regardless of items types.

Reviewed by Nyx at https://codereview.productengine.com/secondlife/r/848/

--HG--
branch : product-engine
parent 9d6fd1c6
No related branches found
No related tags found
No related merge requests found
...@@ -1038,14 +1038,7 @@ void LLOutfitsList::wearSelectedItems() ...@@ -1038,14 +1038,7 @@ void LLOutfitsList::wearSelectedItems()
return; return;
} }
uuid_vec_t::const_iterator it; wear_multiple(selected_uuids, false);
// Wear items from all selected lists(if possible- add, else replace)
for (it = selected_uuids.begin(); it != selected_uuids.end()-1; ++it)
{
LLAppearanceMgr::getInstance()->wearItemOnAvatar(*it, false, false);
}
// call update only when wearing last item
LLAppearanceMgr::getInstance()->wearItemOnAvatar(*it, true, false);
} }
void LLOutfitsList::onWearableItemsListRightClick(LLUICtrl* ctrl, S32 x, S32 y) void LLOutfitsList::onWearableItemsListRightClick(LLUICtrl* ctrl, S32 x, S32 y)
......
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