aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llmanip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llmanip.cpp')
-rw-r--r--linden/indra/newview/llmanip.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/linden/indra/newview/llmanip.cpp b/linden/indra/newview/llmanip.cpp
index 3d27256..953befc 100644
--- a/linden/indra/newview/llmanip.cpp
+++ b/linden/indra/newview/llmanip.cpp
@@ -2,6 +2,8 @@
2 * @file llmanip.cpp 2 * @file llmanip.cpp
3 * @brief LLManip class implementation 3 * @brief LLManip 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"
@@ -91,9 +94,10 @@ void LLManip::rebuild(LLViewerObject* vobj)
91LLManip::LLManip( const LLString& name, LLToolComposite* composite ) 94LLManip::LLManip( const LLString& name, LLToolComposite* composite )
92 : 95 :
93 LLTool( name, composite ), 96 LLTool( name, composite ),
94 mInSnapRegime(FALSE) 97 mInSnapRegime(FALSE),
95{} 98 mHighlightedPart(LL_NO_PART)
96 99{
100}
97 101
98void LLManip::getManipNormal(LLViewerObject* object, EManipPart manip, LLVector3 &normal) 102void LLManip::getManipNormal(LLViewerObject* object, EManipPart manip, LLVector3 &normal)
99{ 103{
@@ -357,14 +361,11 @@ void LLManip::renderGuidelines(BOOL draw_x, BOOL draw_y, BOOL draw_z)
357 LLVector3 grid_scale; 361 LLVector3 grid_scale;
358 gSelectMgr->getGrid(grid_origin, grid_rot, grid_scale); 362 gSelectMgr->getGrid(grid_origin, grid_rot, grid_scale);
359 363
360 LLViewerObject* object = mObjectSelection->getFirstRootObject(); 364 const BOOL children_ok = TRUE;
365 LLViewerObject* object = mObjectSelection->getFirstRootObject(children_ok);
361 if (!object) 366 if (!object)
362 { 367 {
363 object = mObjectSelection->getFirstObject(); 368 return;
364 if (!object)
365 {
366 return;
367 }
368 } 369 }
369 370
370 //LLVector3 center_agent = gSelectMgr->getBBoxOfSelection().getCenterAgent(); 371 //LLVector3 center_agent = gSelectMgr->getBBoxOfSelection().getCenterAgent();