diff options
author | Richard Linden <none@none> | 2010-09-28 17:13:08 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2010-09-28 17:13:08 -0700 |
commit | 6c1f89ea6e0d63c59da4e3a33c9252371032b58b (patch) | |
tree | 59483461b19b4db9baf7837f46ece1922929955c /indra/newview/lltoolpie.cpp | |
parent | 67be46c78a28864360a0ca5ba66d6044a1b9b38d (diff) |
added settings to toggle grab and alt-zoom ability
Diffstat (limited to 'indra/newview/lltoolpie.cpp')
-rw-r--r-- | indra/newview/lltoolpie.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp index 864de018e0..2ee3e4ffed 100644 --- a/indra/newview/lltoolpie.cpp +++ b/indra/newview/lltoolpie.cpp @@ -1210,15 +1210,17 @@ void LLToolPie::handleDeselect() LLTool* LLToolPie::getOverrideTool(MASK mask) { - if (mask == MASK_CONTROL) + if (gSavedSettings.getBOOL("EnableGrab")) { - return LLToolGrab::getInstance(); - } - else if (mask == (MASK_CONTROL | MASK_SHIFT)) - { - return LLToolGrab::getInstance(); + if (mask == MASK_CONTROL) + { + return LLToolGrab::getInstance(); + } + else if (mask == (MASK_CONTROL | MASK_SHIFT)) + { + return LLToolGrab::getInstance(); + } } - return LLTool::getOverrideTool(mask); } |