FIRE-1482: Fixed head/eye movement still moving viewerside while Hide Lookat Beacons is on (Patch from Ansariel Hiller)
parent
215104a74f
commit
a16c902d5f
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue