Satisfy Issue 699: Let Alt-right clicking in mouselook bring up pie menu

Also lltoolpie.cpp cleanup
This commit is contained in:
Inusaito Sayori
2013-10-18 08:28:39 -04:00
parent 7813ca03da
commit ef3f78175c
2 changed files with 1 additions and 3 deletions

View File

@@ -764,6 +764,7 @@ BOOL LLToolCompGun::handleRightMouseDown(S32 x, S32 y, MASK mask)
// be shown.
return FALSE;
*/
if (mask & MASK_ALT) return false;
// Returning true will suppress the context menu
return TRUE;

View File

@@ -1092,9 +1092,6 @@ BOOL LLToolPie::handleRightClickPick()
// didn't click in any UI object, so must have clicked in the world
LLViewerObject *object = mPick.getObject();
LLViewerObject *parent = NULL;
if(object)
parent = object->getRootEdit();
// Can't ignore children here.
LLToolSelect::handleObjectSelection(mPick, FALSE, TRUE);