Fix an issue introduced in V2MultiWear in which double-clicking or hitting an enter on a worn wearable would rewear it, not detach it.
This commit is contained in:
@@ -6808,6 +6808,9 @@ void LLWearableBridgeAction::wearOnAvatar()
|
|||||||
LLViewerInventoryItem* item = getItem();
|
LLViewerInventoryItem* item = getItem();
|
||||||
if(item)
|
if(item)
|
||||||
{
|
{
|
||||||
|
if (get_is_item_worn(item))
|
||||||
|
LLAppearanceMgr::instance().removeItemFromAvatar(item->getUUID());
|
||||||
|
else
|
||||||
LLAppearanceMgr::instance().wearItemOnAvatar(item->getUUID(), true, !add);
|
LLAppearanceMgr::instance().wearItemOnAvatar(item->getUUID(), true, !add);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user