From 82477c484d5f605c44074c277230ea8d1a993fa2 Mon Sep 17 00:00:00 2001 From: Kyler Eastridge Date: Sun, 27 Jul 2025 18:14:52 +0100 Subject: Add ability to disable look at hints --- indra/newview/app_settings/settings.xml | 11 +++++++++++ indra/newview/llhudeffectlookat.cpp | 6 ++++++ 2 files changed, 17 insertions(+) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index d002966573..c416944a24 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -16256,5 +16256,16 @@ Value 1 + EnableLookAtHints + + Comment + Whether or not to send animate the avatar head and send look at hints when moving the cursor or focusing on objects + Persist + 1 + Type + Boolean + Value + 1 + diff --git a/indra/newview/llhudeffectlookat.cpp b/indra/newview/llhudeffectlookat.cpp index d0d2ee191a..845a003500 100644 --- a/indra/newview/llhudeffectlookat.cpp +++ b/indra/newview/llhudeffectlookat.cpp @@ -392,6 +392,12 @@ void LLHUDEffectLookAt::setTargetPosGlobal(const LLVector3d &target_pos_global) //----------------------------------------------------------------------------- bool LLHUDEffectLookAt::setLookAt(ELookAtType target_type, LLViewerObject *object, LLVector3 position) { + static LLCachedControl enable_lookat_hints(gSavedSettings, "EnableLookAtHints", true); + if (!enable_lookat_hints) + { + return false; + } + if (!mSourceObject) { return false; -- cgit v1.2.3