summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2009-11-04 18:03:04 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2009-11-04 18:03:04 -0500
commitdc365be4d23d8070a4f9e670918dbe8ccbe8cc79 (patch)
tree7ad5f7e525f7c7ae304e10ea67a90045aa6cd406
parent98a24938b3cd95f7c93283b91dc95582925265f5 (diff)
For EXT-1985: Clothing previously taken off is re-worn when creating a new clothing item in appearance mode.
General problem with failing to update the COF when clothing items were removed. Added hook in removeWearableFinal, which should guarantee that we're always removing clothing links when we need to.
-rw-r--r--indra/newview/llagentwearables.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp
index 4b3d27767c..7d215b5778 100644
--- a/indra/newview/llagentwearables.cpp
+++ b/indra/newview/llagentwearables.cpp
@@ -1393,6 +1393,7 @@ void LLAgentWearables::removeWearableFinal(const EWearableType type, bool do_rem
const LLUUID &item_id = getWearableItemID(type,i);
popWearable(type,i);
gInventory.addChangedMask(LLInventoryObserver::LABEL, item_id);
+ LLAppearanceManager::removeItemLinks(item_id,false);
//queryWearableCache(); // moved below
if (old_wearable)
@@ -1409,6 +1410,7 @@ void LLAgentWearables::removeWearableFinal(const EWearableType type, bool do_rem
const LLUUID &item_id = getWearableItemID(type,index);
popWearable(type, index);
gInventory.addChangedMask(LLInventoryObserver::LABEL, item_id);
+ LLAppearanceManager::removeItemLinks(item_id,false);
//queryWearableCache(); // moved below