FIRE-1482: Fixed head/eye movement still moving viewerside while Hide Lookat Beacons is on (Patch from Ansariel Hiller)

meow-7.2.2
Kadah 2011-06-23 21:02:55 -07:00
parent 215104a74f
commit a16c902d5f
1 changed files with 10 additions and 1 deletions

View File

@ -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<bool> 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)