summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2009-12-18 15:18:40 -0500
committerLoren Shih <seraph@lindenlab.com>2009-12-18 15:18:40 -0500
commite0f5ce4ecff112857a03b5f9b61d29ef86209d24 (patch)
treebd879b54f4b8795297d4668b3d5c942affbfc86a /indra
parentbe2a8983134e7caba1b45037c368dc15060edcba (diff)
EXT-3582 : My Outfits populates from library if I delete my last outfit
Now checking if this is the first time a user has logged into viewer2.0, via checking against COF existence. This doesn't quite work yet because something before LLAgentWearables is also looking up COF.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llagentwearables.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp
index 1e2eac39eb..454e547155 100644
--- a/indra/newview/llagentwearables.cpp
+++ b/indra/newview/llagentwearables.cpp
@@ -875,6 +875,9 @@ void LLAgentWearables::processAgentInitialWearablesUpdate(LLMessageSystem* mesgs
LLUUID agent_id;
gMessageSystem->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id);
+ const BOOL is_first_time_in_viewer2_0 = (gInventory.findCategoryUUIDForType(LLFolderType::FT_CURRENT_OUTFIT, FALSE) == LLUUID::null);
+
+
LLVOAvatar* avatar = gAgent.getAvatarObject();
if (avatar && (agent_id == avatar->getID()))
{
@@ -954,7 +957,8 @@ void LLAgentWearables::processAgentInitialWearablesUpdate(LLMessageSystem* mesgs
gInventory.addObserver(outfit);
}
- gAgentWearables.populateMyOutfitsFolder();
+ if (is_first_time_in_viewer2_0)
+ gAgentWearables.populateMyOutfitsFolder();
}
}