summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-12-03 14:34:00 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-12-03 14:34:00 -0500
commit5c245e941ace3f52dfa3539c473e2c02f207d8a3 (patch)
treeeaaa5154144705e4f6972eafd96589e959f33c7b
parent9934cd2e29c8ea11e0859cd881d286fd56fae96e (diff)
SH-3562 WIP
-rwxr-xr-xindra/newview/llappearancemgr.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index 09b0c132d2..321bf7edcb 100755
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -239,14 +239,12 @@ public:
void onCompletion()
{
+ llinfos << "done" << llendl;
if (!mTrackingPhase.empty())
{
selfStopPhase(mTrackingPhase);
}
- if( LLInventoryCallbackManager::is_instantiated() )
- {
- LLAppearanceMgr::instance().wearInventoryCategoryOnAvatar(gInventory.getCategory(mDstCatID), mAppend);
- }
+ LLAppearanceMgr::instance().wearInventoryCategoryOnAvatar(gInventory.getCategory(mDstCatID), mAppend);
}
// virtual
@@ -2116,7 +2114,12 @@ void LLAppearanceMgr::wearInventoryCategoryOnAvatar( LLInventoryCategory* catego
// Avoid unintentionally overwriting old wearables. We have to do
// this up front to avoid having to deal with the case of multiple
// wearables being dirty.
- if(!category) return;
+ if (!category) return;
+
+ if ( !LLInventoryCallbackManager::is_instantiated() )
+ {
+ return;
+ }
LL_INFOS("Avatar") << self_av_string() << "wearInventoryCategoryOnAvatar '" << category->getName()
<< "'" << LL_ENDL;