From afc06fd0b7e18d4b6ecc7783b2d2578961805328 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Thu, 30 Jun 2016 23:16:51 +0200 Subject: [PATCH] Sync llappearancemgr.cpp with V3 --- indra/newview/llappearancemgr.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index ac506393b1..cd4461f4cd 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -1339,6 +1339,8 @@ static void removeDuplicateWearableItemsByAssetID(LLInventoryModel::item_array_t } // [/SL:KB] +//========================================================================= + const LLUUID LLAppearanceMgr::getCOF() const { return gInventory.findCategoryUUIDForType(LLFolderType::FT_CURRENT_OUTFIT); @@ -2134,9 +2136,8 @@ void LLAppearanceMgr::updateCOF(LLInventoryModel::item_array_t& body_items_new, // Collect and filter descendents to determine new COF contents. - // - // - Body parts: always include COF contents as a fallback in case any required parts are missing. - // + // - Body parts: always include COF contents as a fallback in case any + // required parts are missing. // Preserve body parts from COF if appending. LLInventoryModel::item_array_t body_items; getDescendentsOfAssetType(cof, body_items, LLAssetType::AT_BODYPART); @@ -2154,9 +2155,7 @@ void LLAppearanceMgr::updateCOF(LLInventoryModel::item_array_t& body_items_new, removeDuplicateItems(body_items); filterWearableItems(body_items, 1, 0); - // // - Wearables: include COF contents only if appending. - // LLInventoryModel::item_array_t wear_items; if (append) getDescendentsOfAssetType(cof, wear_items, LLAssetType::AT_CLOTHING); @@ -2182,9 +2181,7 @@ void LLAppearanceMgr::updateCOF(LLInventoryModel::item_array_t& body_items_new, // [/SL:KB] filterWearableItems(wear_items, 0, LLAgentWearables::MAX_CLOTHING_LAYERS); - // // - Attachments: include COF contents only if appending. - // LLInventoryModel::item_array_t obj_items; if (append) getDescendentsOfAssetType(cof, obj_items, LLAssetType::AT_OBJECT); @@ -2218,9 +2215,7 @@ void LLAppearanceMgr::updateCOF(LLInventoryModel::item_array_t& body_items_new, removeDuplicateItems(obj_items); - // // - Gestures: include COF contents only if appending. - // LLInventoryModel::item_array_t gest_items; if (append) getDescendentsOfAssetType(cof, gest_items, LLAssetType::AT_GESTURE); @@ -4211,7 +4206,7 @@ void LLAppearanceMgr::removeItemsFromAvatar(const uuid_vec_t& ids_to_remove, LLP return; } // [RLVa:KB] - Checked: 2013-02-12 (RLVa-1.4.8) -// LLPointer cb = NULL; +// LLPointer cb = new LLUpdateAppearanceOnDestroy; for (uuid_vec_t::const_iterator it = ids_to_remove.begin(); it != ids_to_remove.end(); ++it) { const LLUUID& id_to_remove = *it;