diff options
author | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
commit | 215f423cbe18fe9ca14a26caef918d303bad28ff (patch) | |
tree | 0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/lltoolfocus.cpp | |
parent | Second Life viewer sources 1.18.3.5-RC (diff) | |
download | meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2 meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz |
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lltoolfocus.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/linden/indra/newview/lltoolfocus.cpp b/linden/indra/newview/lltoolfocus.cpp index 733a47e..2ac2b33 100644 --- a/linden/indra/newview/lltoolfocus.cpp +++ b/linden/indra/newview/lltoolfocus.cpp | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file lltoolfocus.cpp | 2 | * @file lltoolfocus.cpp |
3 | * @brief A tool to set the build focus point. | 3 | * @brief A tool to set the build focus point. |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | ||
6 | * | ||
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 7 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 8 | * |
7 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
@@ -24,6 +26,7 @@ | |||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
26 | * COMPLETENESS OR PERFORMANCE. | 28 | * COMPLETENESS OR PERFORMANCE. |
29 | * $/LicenseInfo$ | ||
27 | */ | 30 | */ |
28 | 31 | ||
29 | #include "llviewerprecompiledheaders.h" | 32 | #include "llviewerprecompiledheaders.h" |
@@ -91,17 +94,13 @@ void LLToolCamera::handleSelect() | |||
91 | { | 94 | { |
92 | if (gFloaterTools) | 95 | if (gFloaterTools) |
93 | { | 96 | { |
94 | gFloaterTools->setStatusText("Click and drag to change view"); | 97 | gFloaterTools->setStatusText("camera"); |
95 | } | 98 | } |
96 | } | 99 | } |
97 | 100 | ||
98 | // virtual | 101 | // virtual |
99 | void LLToolCamera::handleDeselect() | 102 | void LLToolCamera::handleDeselect() |
100 | { | 103 | { |
101 | if (gFloaterTools) | ||
102 | { | ||
103 | gFloaterTools->setStatusText(""); | ||
104 | } | ||
105 | // gAgent.setLookingAtAvatar(FALSE); | 104 | // gAgent.setLookingAtAvatar(FALSE); |
106 | } | 105 | } |
107 | 106 | ||
@@ -282,9 +281,11 @@ BOOL LLToolCamera::handleMouseUp(S32 x, S32 y, MASK mask) | |||
282 | { | 281 | { |
283 | LLCoordGL mouse_pos; | 282 | LLCoordGL mouse_pos; |
284 | LLVector3 focus_pos = gAgent.getPosAgentFromGlobal(gAgent.getFocusGlobal()); | 283 | LLVector3 focus_pos = gAgent.getPosAgentFromGlobal(gAgent.getFocusGlobal()); |
285 | gCamera->projectPosAgentToScreen(focus_pos, mouse_pos); | 284 | BOOL success = gCamera->projectPosAgentToScreen(focus_pos, mouse_pos); |
286 | 285 | if (success) | |
287 | LLUI::setCursorPositionScreen(mouse_pos.mX, mouse_pos.mY); | 286 | { |
287 | LLUI::setCursorPositionScreen(mouse_pos.mX, mouse_pos.mY); | ||
288 | } | ||
288 | } | 289 | } |
289 | else if (mMouseSteering) | 290 | else if (mMouseSteering) |
290 | { | 291 | { |