From ece823c16756ef619bb042b271e96634663ea66a Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Thu, 21 Apr 2022 00:06:27 -0400 Subject: [PATCH] Bake tweaks and uninitilized buffer --- indra/newview/llagentwearables.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp index 885c9ba8fa5..2c270716491 100644 --- a/indra/newview/llagentwearables.cpp +++ b/indra/newview/llagentwearables.cpp @@ -574,8 +574,8 @@ void LLAgentWearables::saveAllWearables() for (U32 j=0; j < getWearableCount((LLWearableType::EType)i); j++) saveWearable((LLWearableType::EType)i, j, FALSE); } - sendAgentWearablesUpdate(); - //gAgent.sendAgentSetAppearance(); + + gAgent.sendAgentSetAppearance(); } // Called when the user changes the name of a wearable inventory item that is currently being worn. @@ -1104,7 +1104,11 @@ void LLAgentWearables::createStandardWearables() FALSE, //LLWearableType::WT_GLOVES TRUE, //LLWearableType::WT_UNDERSHIRT TRUE, //LLWearableType::WT_UNDERPANTS - FALSE //LLWearableType::WT_SKIRT + FALSE, //LLWearableType::WT_SKIRT + FALSE, //LLWearableType::WT_ALPHA + FALSE, //LLWearableType::WT_TATTOO + FALSE, //LLWearableType::WT_PHYSICS + FALSE //LLWearableType::WT_UNIVERSAL }; LLPointer<LLInventoryCallback> cb = new OnWearableItemCreatedCB; @@ -1223,13 +1227,6 @@ void LLAgentWearables::addWearableToAgentInventory(LLPointer<LLInventoryCallback void LLAgentWearables::removeWearable(const LLWearableType::EType type, bool do_remove_all, U32 index) { - if (gAgent.isTeen() && - (type == LLWearableType::WT_UNDERSHIRT || type == LLWearableType::WT_UNDERPANTS)) - { - // Can't take off underclothing in simple UI mode or on PG accounts - // TODO: enable the removing of a single undershirt/underpants if multiple are worn. - Nyx - return; - } if (getWearableCount(type) == 0) { // no wearables to remove -- GitLab