summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-04-23 11:38:53 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-04-23 11:38:53 -0400
commit1253c11e0b6d28e2e0941dffd2e45cb6433f9c57 (patch)
tree72642e08db4f0ed65f54c98dd06752d11af26241
parent08704b36f6850d2d2fd29bb984238f760215356a (diff)
more phase tracking for inventory ops
-rw-r--r--indra/newview/llappearancemgr.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index 11f6aa1013..484de81ac9 100644
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -174,7 +174,6 @@ public:
* after the last item has fired the event and dereferenced it -- if all
* the events actually fire!
*/
- selfStopPhase("wear_inventory_category_callback");
}
protected:
@@ -182,6 +181,8 @@ protected:
{
LL_DEBUGS("Avatar") << self_av_string() << "done all inventory callbacks" << LL_ENDL;
+ selfStopPhase("wear_inventory_category_callback");
+
// Is the destructor called by ordinary dereference, or because the app's shutting down?
// If the inventory callback manager goes away, we're shutting down, no longer want the callback.
if( LLInventoryCallbackManager::is_instantiated() )
@@ -1891,6 +1892,7 @@ void LLAppearanceMgr::wearInventoryCategory(LLInventoryCategory* category, bool
LL_DEBUGS("Avatar") << self_av_string() << "wearInventoryCategory( " << category->getName()
<< " )" << LL_ENDL;
+ selfStartPhase("wear_inventory_category_fetch");
callAfterCategoryFetch(category->getUUID(),boost::bind(&LLAppearanceMgr::wearCategoryFinal,
&LLAppearanceMgr::instance(),
category->getUUID(), copy, append));
@@ -1899,6 +1901,8 @@ void LLAppearanceMgr::wearInventoryCategory(LLInventoryCategory* category, bool
void LLAppearanceMgr::wearCategoryFinal(LLUUID& cat_id, bool copy_items, bool append)
{
LL_DEBUGS("Avatar") << self_av_string() << "starting" << LL_ENDL;
+
+ selfStopPhase("wear_inventory_category_fetch");
// We now have an outfit ready to be copied to agent inventory. Do
// it, and wear that outfit normally.