From b58fdec3036f91d97cc12762803fea9f65f673a0 Mon Sep 17 00:00:00 2001 From: Ansariel Hiller Date: Sat, 9 Nov 2019 15:08:31 +0000 Subject: Only focus camera on agent in autopilot mode if the walk is actually performed --- indra/newview/lltoolpie.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp index 1b54402221..dd429d4ccf 100644 --- a/indra/newview/lltoolpie.cpp +++ b/indra/newview/lltoolpie.cpp @@ -576,11 +576,11 @@ bool LLToolPie::walkToClickedLocation() mPick.mPosGlobal = gAgent.getPositionGlobal() + LLVector3d(LLViewerCamera::instance().getAtAxis()) * SELF_CLICK_WALK_DISTANCE; } - gAgentCamera.setFocusOnAvatar(TRUE, TRUE); - if ((mPick.mPickType == LLPickInfo::PICK_LAND && !mPick.mPosGlobal.isExactlyZero()) || (mPick.mObjectID.notNull() && !mPick.mPosGlobal.isExactlyZero())) { + gAgentCamera.setFocusOnAvatar(TRUE, TRUE); + if (mAutoPilotDestination) { mAutoPilotDestination->markDead(); } mAutoPilotDestination = (LLHUDEffectBlob *)LLHUDManager::getInstance()->createViewerEffect(LLHUDObject::LL_HUD_EFFECT_BLOB, FALSE); mAutoPilotDestination->setPositionGlobal(mPick.mPosGlobal); -- cgit v1.2.3