diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lltool.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/linden/indra/newview/lltool.cpp b/linden/indra/newview/lltool.cpp index cb0d3b1..99dbe31 100644 --- a/linden/indra/newview/lltool.cpp +++ b/linden/indra/newview/lltool.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2001-2008, Linden Research, Inc. | 7 | * Copyright (c) 2001-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -42,6 +42,7 @@ | |||
42 | #include "lltoolfocus.h" | 42 | #include "lltoolfocus.h" |
43 | #include "llfocusmgr.h" | 43 | #include "llfocusmgr.h" |
44 | #include "llagent.h" | 44 | #include "llagent.h" |
45 | #include "llviewerjoystick.h" | ||
45 | 46 | ||
46 | extern BOOL gDebugClicks; | 47 | extern BOOL gDebugClicks; |
47 | 48 | ||
@@ -160,6 +161,11 @@ BOOL LLTool::handleKey(KEY key, MASK mask) | |||
160 | 161 | ||
161 | LLTool* LLTool::getOverrideTool(MASK mask) | 162 | LLTool* LLTool::getOverrideTool(MASK mask) |
162 | { | 163 | { |
164 | // NOTE: if in flycam mode, ALT-ZOOM camera should be disabled | ||
165 | if (LLViewerJoystick::getInstance()->getOverrideCamera()) | ||
166 | { | ||
167 | return NULL; | ||
168 | } | ||
163 | if (mask & MASK_ALT) | 169 | if (mask & MASK_ALT) |
164 | { | 170 | { |
165 | return LLToolCamera::getInstance(); | 171 | return LLToolCamera::getInstance(); |