diff options
author | Ansariel Hiller <ansarielhiller@yahoo.de> | 2019-11-09 15:08:31 +0000 |
---|---|---|
committer | Ansariel Hiller <ansarielhiller@yahoo.de> | 2019-11-09 15:08:31 +0000 |
commit | f3fdc4e999d17376ccc8441038f1c232af695836 (patch) | |
tree | 8c0f3a1327d68d302eaf8bbab0f8a14fd74d5a81 /indra | |
parent | 27808b4d64306e1850c15ab25d11ef80cc5ca817 (diff) |
Only focus camera on agent in autopilot mode if the walk is actually performed
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/lltoolpie.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp index dc9c0edc0c..e7030a3f85 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); |