From 7cb97df1cd8f61b25d033468c18951847076452d Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Fri, 12 Nov 2010 21:29:28 -0700 Subject: Applied patch by Ansariel Hiller for #689: Optionally disable internal hover (fly) up animation --- linden/indra/newview/app_settings/settings.xml | 11 +++++++++++ linden/indra/newview/llvoavatar.cpp | 9 +++++++++ 2 files changed, 20 insertions(+) (limited to 'linden/indra') diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index 33299ba..ff90c86 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml @@ -364,6 +364,17 @@ Value 3 + DisableInternalFlyUpAnimation + + Comment + Disables the internal hover up animation. Enable if you use an AO and wear hand attachments like rings, prim nails etc. that often loose their correct position while flying. + Persist + 1 + Type + Boolean + Value + 0 + DisableLoginLogoutScreens Comment diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index 54aed54..6904bb2 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp @@ -5490,6 +5490,15 @@ void LLVOAvatar::resetAnimations() //----------------------------------------------------------------------------- BOOL LLVOAvatar::startMotion(const LLUUID& id, F32 time_offset) { + // [Ansariel Hiller]: Disable pesky hover up animation that changes + // hand and finger position and often breaks correct + // fit of prim nails, rings etc. when flying and + // using an AO. + if ("62c5de58-cb33-5743-3d07-9e4cd4352864" == id.getString() && gSavedSettings.getBOOL("DisableInternalFlyUpAnimation")) + { + return TRUE; + } + LLMemType mt(LLMemType::MTYPE_AVATAR); // start special case female walk for female avatars -- cgit v1.1