summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAnsariel Hiller <ansarielhiller@yahoo.de>2019-11-09 15:08:31 +0000
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-06-23 14:50:04 +0300
commitb58fdec3036f91d97cc12762803fea9f65f673a0 (patch)
tree316563a4dc0e944303290597a6dc2b14a44b2172 /indra/newview
parent3ae6b2484e8008e9b533c0e470ba24ee174325f7 (diff)
Only focus camera on agent in autopilot mode if the walk is actually performed
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lltoolpie.cpp4
1 files changed, 2 insertions, 2 deletions
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);