From eb5b1312bb7fa82a0b2b52dbe50ee4b5eed60af0 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Thu, 11 Oct 2012 02:40:00 -0500 Subject: [PATCH] Removed pointless asset fetches for expression-based gestures (opposed to animation based ones), since they don't have actual animation assets. --- indra/newview/llgesturemgr.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/indra/newview/llgesturemgr.cpp b/indra/newview/llgesturemgr.cpp index 9fe20b6b0..852ad01b8 100644 --- a/indra/newview/llgesturemgr.cpp +++ b/indra/newview/llgesturemgr.cpp @@ -33,6 +33,7 @@ #include // library +#include "llanimationstates.h" #include "llaudioengine.h" #include "lldatapacker.h" #include "llinventory.h" @@ -551,6 +552,13 @@ void LLGestureMgr::playGesture(LLMultiGesture* gesture) || anim_step->mFlags & ANIM_FLAG_STOP || gAssetStorage->hasLocalAsset(anim_id, LLAssetType::AT_ANIMATION))) { + //Singu note: Don't attempt to fetch expressions/emotes. + const char* emote_name = gAnimLibrary.animStateToString(anim_id); + if(emote_name && strstr(emote_name,"express_")==emote_name) + { + break; + } + mLoadingAssets.insert(anim_id); LLUUID* id = new LLUUID(gAgentID);