diff options
author | Nyx Linden <nyx@lindenlab.com> | 2010-05-19 19:49:50 -0400 |
---|---|---|
committer | Nyx Linden <nyx@lindenlab.com> | 2010-05-19 19:49:50 -0400 |
commit | b9096fc954d615a9eff44c3e9bfe1c7d9cadd87a (patch) | |
tree | cfbba634d4ef9b9ba40e00e8dee179a7423b199c /indra/newview/llappearancemgr.cpp | |
parent | 8c4ec8ac9da1845a4aa78a6a38f64b5fc17b2a90 (diff) | |
parent | 8487341b0f255e65044c3f7e3dc09461b4e2351e (diff) |
automated merge with viewer-public
Diffstat (limited to 'indra/newview/llappearancemgr.cpp')
-rw-r--r-- | indra/newview/llappearancemgr.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index 4aef72ab0b..7d39ba30f0 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -1469,14 +1469,21 @@ void LLAppearanceMgr::addCOFItemLink(const LLInventoryItem *item, bool do_update { // Are these links to the same object? const LLViewerInventoryItem* inv_item = item_array.get(i).get(); + const LLWearableType::EType wearable_type = inv_item->getWearableType(); + + const bool is_body_part = (wearable_type == LLWearableType::WT_SHAPE) + || (wearable_type == LLWearableType::WT_HAIR) + || (wearable_type == LLWearableType::WT_EYES) + || (wearable_type == LLWearableType::WT_SKIN); + if (inv_item->getLinkedUUID() == vitem->getLinkedUUID()) { linked_already = true; } - // Are these links to different items of the same wearable + // Are these links to different items of the same body part // type? If so, new item will replace old. - // MULTI-WEARABLES: revisit if more than one per type is allowed. - else if (FALSE/*areMatchingWearables(vitem,inv_item)*/) + // TODO: MULTI-WEARABLE: check for wearable limit for clothing types + else if (is_body_part) { if (inv_item->getIsLinkType()) { |