EXT-8127 FIXED Provided attachment list item name on outfit edit panel even if it unworn.

reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/688/

--HG--
branch : product-engine
meow-7.2.2
Alexei Arabadji 2010-07-02 17:41:42 +03:00
parent 41ac3f8f22
commit 018ff76192
1 changed files with 2 additions and 2 deletions

View File

@ -269,13 +269,13 @@ LLPanelAttachmentListItem* LLPanelAttachmentListItem::create(LLViewerInventoryIt
void LLPanelAttachmentListItem::updateItem(const std::string& name,
EItemState item_state)
{
std::string title_joint;
std::string title_joint = name;
LLViewerInventoryItem* inv_item = getItem();
if (inv_item && isAgentAvatarValid() && gAgentAvatarp->isWearingAttachment(inv_item->getLinkedUUID()))
{
std::string joint = LLTrans::getString(gAgentAvatarp->getAttachedPointName(inv_item->getLinkedUUID()));
title_joint = name + " (" + joint + ")";
title_joint = title_joint + " (" + joint + ")";
}
LLPanelInventoryListItemBase::updateItem(title_joint, item_state);