From a16c902d5fdf96f9632fdd7c470a7e4a5b4e2a58 Mon Sep 17 00:00:00 2001 From: Kadah Date: Thu, 23 Jun 2011 21:02:55 -0700 Subject: [PATCH] FIRE-1482: Fixed head/eye movement still moving viewerside while Hide Lookat Beacons is on (Patch from Ansariel Hiller) --- indra/newview/llagentcamera.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp index dfe53e4756..e01e89bd27 100644 --- a/indra/newview/llagentcamera.cpp +++ b/indra/newview/llagentcamera.cpp @@ -2662,7 +2662,16 @@ void LLAgentCamera::setFocusOnAvatar(BOOL focus_on_avatar, BOOL animate) BOOL LLAgentCamera::setLookAt(ELookAtType target_type, LLViewerObject *object, LLVector3 position) { - if(object && object->isAttachment()) +// if(object && object->isAttachment()) + static LLCachedControl is_private(gSavedSettings, "PrivateLookAtTarget", false); + + if(is_private) + { + position.clearVec(); + target_type = LOOKAT_TARGET_NONE; + object = gAgentAvatarp; + } + else if(object && object->isAttachment()) { LLViewerObject* parent = object; while(parent)