From 215f423cbe18fe9ca14a26caef918d303bad28ff Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:45:11 -0500 Subject: Second Life viewer sources 1.18.4.0-RC --- linden/indra/newview/lltoolselect.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'linden/indra/newview/lltoolselect.cpp') 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 @@ * @file lltoolselect.cpp * @brief LLToolSelect class implementation * + * $LicenseInfo:firstyear=2001&license=viewergpl$ + * * Copyright (c) 2001-2007, Linden Research, Inc. * * Second Life Viewer Source Code @@ -24,6 +26,7 @@ * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, * COMPLETENESS OR PERFORMANCE. + * $/LicenseInfo$ */ #include "llviewerprecompiledheaders.h" @@ -152,6 +155,11 @@ LLHandle LLToolSelect::handleObjectSelection(LLViewerObject * } else { + // Save the current zoom values because deselect resets them. + F32 target_zoom; + F32 current_zoom; + gSelectMgr->getAgentHUDZoom(target_zoom, current_zoom); + // JC - Change behavior to make it easier to select children // of linked sets. 9/3/2002 if( !already_selected || ignore_group) @@ -168,6 +176,9 @@ LLHandle LLToolSelect::handleObjectSelection(LLViewerObject * { gSelectMgr->selectObjectAndFamily(object); } + + // restore the zoom to the previously stored values. + gSelectMgr->setAgentHUDZoom(target_zoom, current_zoom); } if (!gAgent.getFocusOnAvatar() && // if camera not glued to avatar -- cgit v1.1