diff options
author | Richard Linden <none@none> | 2011-03-14 12:43:46 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2011-03-14 12:43:46 -0700 |
commit | a3edf75015508f6b518d6f49387a5d180554b71c (patch) | |
tree | b79d50ec68ef67cf0ac68547a33b5631299e1853 | |
parent | ee048db2095d8fc62e86b3dcc31188d7493af825 (diff) |
SOCIAL-701 FIX Clicking on world while flying moves avatar to location and avatar and camera shake...
-rw-r--r-- | indra/newview/lltoolpie.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp index 23290e5cc6..65c9f2b8f6 100644 --- a/indra/newview/lltoolpie.cpp +++ b/indra/newview/lltoolpie.cpp @@ -623,6 +623,7 @@ BOOL LLToolPie::handleMouseUp(S32 x, S32 y, MASK mask) LLViewerObject* obj = mPick.getObject(); U8 click_action = final_click_action(obj); + // let media have first pass at click if (handleMediaMouseUp() || LLViewerMediaFocus::getInstance()->getFocus()) { mAbortClickToWalk = true; @@ -632,6 +633,7 @@ BOOL LLToolPie::handleMouseUp(S32 x, S32 y, MASK mask) if (click_action == CLICK_ACTION_NONE // not doing 1-click action && gSavedSettings.getBOOL("ClickToWalk") // click to walk enabled + && !gAgent.getFlying() // don't auto-navigate while flying until that works && !mAbortClickToWalk // another behavior hasn't cancelled click to walk && !mPick.mPosGlobal.isExactlyZero() // valid coordinates for pick && (mPick.mPickType == LLPickInfo::PICK_LAND // we clicked on land |