Skip to content

Commit 82477c4

Browse files
FelixWolfakleshchev
authored andcommitted
Add ability to disable look at hints
1 parent 87fa994 commit 82477c4

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

indra/newview/app_settings/settings.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16256,5 +16256,16 @@
1625616256
<key>Value</key>
1625716257
<integer>1</integer>
1625816258
</map>
16259+
<key>EnableLookAtHints</key>
16260+
<map>
16261+
<key>Comment</key>
16262+
<string>Whether or not to send animate the avatar head and send look at hints when moving the cursor or focusing on objects</string>
16263+
<key>Persist</key>
16264+
<integer>1</integer>
16265+
<key>Type</key>
16266+
<string>Boolean</string>
16267+
<key>Value</key>
16268+
<integer>1</integer>
16269+
</map>
1625916270
</map>
1626016271
</llsd>

indra/newview/llhudeffectlookat.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,12 @@ void LLHUDEffectLookAt::setTargetPosGlobal(const LLVector3d &target_pos_global)
392392
//-----------------------------------------------------------------------------
393393
bool LLHUDEffectLookAt::setLookAt(ELookAtType target_type, LLViewerObject *object, LLVector3 position)
394394
{
395+
static LLCachedControl<bool> enable_lookat_hints(gSavedSettings, "EnableLookAtHints", true);
396+
if (!enable_lookat_hints)
397+
{
398+
return false;
399+
}
400+
395401
if (!mSourceObject)
396402
{
397403
return false;

0 commit comments

Comments
 (0)