From 87fa994ad02a36a1b47c715b44e05ebff0e6e219 Mon Sep 17 00:00:00 2001 From: Kyler Eastridge Date: Sun, 27 Jul 2025 18:04:35 +0100 Subject: Add option to disable selection hints --- indra/newview/llhudeffectpointat.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'indra/newview/llhudeffectpointat.cpp') diff --git a/indra/newview/llhudeffectpointat.cpp b/indra/newview/llhudeffectpointat.cpp index eeb38cd6aa..23ab0e873d 100644 --- a/indra/newview/llhudeffectpointat.cpp +++ b/indra/newview/llhudeffectpointat.cpp @@ -34,6 +34,7 @@ #include "llagent.h" #include "llagentcamera.h" #include "lldrawable.h" +#include "llviewercontrol.h" #include "llviewerobjectlist.h" #include "llvoavatar.h" #include "message.h" @@ -221,6 +222,12 @@ void LLHUDEffectPointAt::setTargetPosGlobal(const LLVector3d &target_pos_global) //----------------------------------------------------------------------------- bool LLHUDEffectPointAt::setPointAt(EPointAtType target_type, LLViewerObject *object, LLVector3 position) { + static LLCachedControl enable_selection_hints(gSavedSettings, "EnableSelectionHints", true); + if (!enable_selection_hints) + { + return false; + } + if (!mSourceObject) { return false; -- cgit v1.2.3