From c1feb11d98ffc17d924a27ea4a82cb3e21b50f12 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Sat, 26 Oct 2013 18:56:39 -0500 Subject: [PATCH] SH-3860. Cloud on first load issue. I'm sure the inaccessible jira has more details... --- indra/newview/llappearancemgr.cpp | 3 ++- indra/newview/llstartup.cpp | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index b840c63fc..9416febb2 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -4332,9 +4332,10 @@ public: << llendl; //dec_busy_count(); gInventory.removeObserver(this); + doOnIdleOneTime(mCallable); // lets notify observers that loading is finished. - gAgentWearables.notifyLoadingFinished(); + //gAgentWearables.notifyLoadingFinished(); delete this; return; } diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 43e8ca335..75978675c 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -3255,12 +3255,17 @@ void LLStartUp::loadInitialOutfit( const std::string& outfit_folder_name, } else { + // FIXME SH-3860 - this creates a race condition, where COF + // changes (base outfit link added) after appearance update + // request has been submitted. sWearablesLoadedCon = gAgentWearables.addLoadedCallback(LLStartUp::saveInitialOutfit); bool do_copy = true; bool do_append = false; LLViewerInventoryCategory *cat = gInventory.getCategory(cat_id); - LLAppearanceMgr::instance().wearInventoryCategory(cat, do_copy, do_append); + // Need to fetch cof contents before we can wear. + callAfterCategoryFetch(LLAppearanceMgr::instance().getCOF(), + boost::bind(&LLAppearanceMgr::wearInventoryCategory, LLAppearanceMgr::getInstance(), cat, do_copy, do_append)); lldebugs << "initial outfit category id: " << cat_id << llendl; }