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/lltoolselect.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 'linden/indra/newview/lltoolselect.cpp')
-rw-r--r-- | linden/indra/newview/lltoolselect.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/linden/indra/newview/lltoolselect.cpp b/linden/indra/newview/lltoolselect.cpp index f400b53..f77202f 100644 --- a/linden/indra/newview/lltoolselect.cpp +++ b/linden/indra/newview/lltoolselect.cpp | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file lltoolselect.cpp | 2 | * @file lltoolselect.cpp |
3 | * @brief LLToolSelect class implementation | 3 | * @brief LLToolSelect class implementation |
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" |
@@ -152,6 +155,11 @@ LLHandle<LLObjectSelection> LLToolSelect::handleObjectSelection(LLViewerObject * | |||
152 | } | 155 | } |
153 | else | 156 | else |
154 | { | 157 | { |
158 | // Save the current zoom values because deselect resets them. | ||
159 | F32 target_zoom; | ||
160 | F32 current_zoom; | ||
161 | gSelectMgr->getAgentHUDZoom(target_zoom, current_zoom); | ||
162 | |||
155 | // JC - Change behavior to make it easier to select children | 163 | // JC - Change behavior to make it easier to select children |
156 | // of linked sets. 9/3/2002 | 164 | // of linked sets. 9/3/2002 |
157 | if( !already_selected || ignore_group) | 165 | if( !already_selected || ignore_group) |
@@ -168,6 +176,9 @@ LLHandle<LLObjectSelection> LLToolSelect::handleObjectSelection(LLViewerObject * | |||
168 | { | 176 | { |
169 | gSelectMgr->selectObjectAndFamily(object); | 177 | gSelectMgr->selectObjectAndFamily(object); |
170 | } | 178 | } |
179 | |||
180 | // restore the zoom to the previously stored values. | ||
181 | gSelectMgr->setAgentHUDZoom(target_zoom, current_zoom); | ||
171 | } | 182 | } |
172 | 183 | ||
173 | if (!gAgent.getFocusOnAvatar() && // if camera not glued to avatar | 184 | if (!gAgent.getFocusOnAvatar() && // if camera not glued to avatar |