EXT-7436 FIX every other login ruthing.

I think this is related - every time you wear one body part or a single piece
of clothing, it would remove all body parts, causing you to regenerate defaults
which makes you look like ruth. Simple error in logic, body parts should only
be replaced if they are being removed.

Code reviewed by Seraph
master
Nyx (Neal Orman) 2010-05-24 13:12:28 -04:00
parent bd53640901
commit 4ef12d1ecf
1 changed files with 1 additions and 1 deletions

View File

@ -1483,7 +1483,7 @@ void LLAppearanceMgr::addCOFItemLink(const LLInventoryItem *item, bool do_update
// Are these links to different items of the same body part
// type? If so, new item will replace old.
// TODO: MULTI-WEARABLE: check for wearable limit for clothing types
else if (is_body_part)
else if (is_body_part && (vitem->getWearableType() == wearable_type))
{
if (inv_item->getIsLinkType())
{