aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpanelobject.cpp')
-rw-r--r--linden/indra/newview/llpanelobject.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/linden/indra/newview/llpanelobject.cpp b/linden/indra/newview/llpanelobject.cpp
index 9022c14..1f386bf 100644
--- a/linden/indra/newview/llpanelobject.cpp
+++ b/linden/indra/newview/llpanelobject.cpp
@@ -365,6 +365,17 @@ void LLPanelObject::getState( )
365 BOOL enable_scale = objectp->permMove() && objectp->permModify(); 365 BOOL enable_scale = objectp->permMove() && objectp->permModify();
366 BOOL enable_rotate = objectp->permMove() && ( (objectp->permModify() && !objectp->isAttachment()) || !gSavedSettings.getBOOL("EditLinkedParts")); 366 BOOL enable_rotate = objectp->permMove() && ( (objectp->permModify() && !objectp->isAttachment()) || !gSavedSettings.getBOOL("EditLinkedParts"));
367 367
368 S32 selected_count = LLSelectMgr::getInstance()->getSelection()->getObjectCount();
369 BOOL single_volume = (LLSelectMgr::getInstance()->selectionAllPCode( LL_PCODE_VOLUME ))
370 && (selected_count == 1);
371
372 if (LLSelectMgr::getInstance()->getSelection()->getRootObjectCount() > 1)
373 {
374 enable_move = FALSE;
375 enable_scale = FALSE;
376 enable_rotate = FALSE;
377 }
378
368 LLVector3 vec; 379 LLVector3 vec;
369 if (enable_move) 380 if (enable_move)
370 { 381 {
@@ -438,9 +449,6 @@ void LLPanelObject::getState( )
438 // BUG? Check for all objects being editable? 449 // BUG? Check for all objects being editable?
439 S32 roots_selected = LLSelectMgr::getInstance()->getSelection()->getRootObjectCount(); 450 S32 roots_selected = LLSelectMgr::getInstance()->getSelection()->getRootObjectCount();
440 BOOL editable = root_objectp->permModify(); 451 BOOL editable = root_objectp->permModify();
441 S32 selected_count = LLSelectMgr::getInstance()->getSelection()->getObjectCount();
442 BOOL single_volume = (LLSelectMgr::getInstance()->selectionAllPCode( LL_PCODE_VOLUME ))
443 && (selected_count == 1);
444 452
445 // Select Single Message 453 // Select Single Message
446 childSetVisible("select_single", FALSE); 454 childSetVisible("select_single", FALSE);