diff options
Diffstat (limited to 'linden/indra/newview/llpanelobject.cpp')
-rw-r--r-- | linden/indra/newview/llpanelobject.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/linden/indra/newview/llpanelobject.cpp b/linden/indra/newview/llpanelobject.cpp index 584ecb8..5c70590 100644 --- a/linden/indra/newview/llpanelobject.cpp +++ b/linden/indra/newview/llpanelobject.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 |
@@ -373,6 +373,18 @@ void LLPanelObject::getState( ) | |||
373 | BOOL enable_rotate = objectp->permMove() && ( (objectp->permModify() && !objectp->isAttachment()) || !gSavedSettings.getBOOL("EditLinkedParts")); | 373 | BOOL enable_rotate = objectp->permMove() && ( (objectp->permModify() && !objectp->isAttachment()) || !gSavedSettings.getBOOL("EditLinkedParts")); |
374 | 374 | ||
375 | childSetEnabled("build_math_constants",true); | 375 | childSetEnabled("build_math_constants",true); |
376 | |||
377 | S32 selected_count = LLSelectMgr::getInstance()->getSelection()->getObjectCount(); | ||
378 | BOOL single_volume = (LLSelectMgr::getInstance()->selectionAllPCode( LL_PCODE_VOLUME )) | ||
379 | && (selected_count == 1); | ||
380 | |||
381 | if (LLSelectMgr::getInstance()->getSelection()->getRootObjectCount() > 1) | ||
382 | { | ||
383 | enable_move = FALSE; | ||
384 | enable_scale = FALSE; | ||
385 | enable_rotate = FALSE; | ||
386 | } | ||
387 | |||
376 | LLVector3 vec; | 388 | LLVector3 vec; |
377 | if (enable_move) | 389 | if (enable_move) |
378 | { | 390 | { |
@@ -464,9 +476,6 @@ void LLPanelObject::getState( ) | |||
464 | // BUG? Check for all objects being editable? | 476 | // BUG? Check for all objects being editable? |
465 | S32 roots_selected = LLSelectMgr::getInstance()->getSelection()->getRootObjectCount(); | 477 | S32 roots_selected = LLSelectMgr::getInstance()->getSelection()->getRootObjectCount(); |
466 | BOOL editable = root_objectp->permModify(); | 478 | BOOL editable = root_objectp->permModify(); |
467 | S32 selected_count = LLSelectMgr::getInstance()->getSelection()->getObjectCount(); | ||
468 | BOOL single_volume = (LLSelectMgr::getInstance()->selectionAllPCode( LL_PCODE_VOLUME )) | ||
469 | && (selected_count == 1); | ||
470 | 479 | ||
471 | // Select Single Message | 480 | // Select Single Message |
472 | childSetVisible("select_single", FALSE); | 481 | childSetVisible("select_single", FALSE); |