aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolcomp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lltoolcomp.cpp')
-rw-r--r--linden/indra/newview/lltoolcomp.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/newview/lltoolcomp.cpp b/linden/indra/newview/lltoolcomp.cpp
index 2c2c0fe..fd1152d 100644
--- a/linden/indra/newview/lltoolcomp.cpp
+++ b/linden/indra/newview/lltoolcomp.cpp
@@ -246,7 +246,14 @@ void LLToolCompTranslate::pickCallback(S32 x, S32 y, MASK mask)
246 { 246 {
247 gEditMenuHandler = gSelectMgr; 247 gEditMenuHandler = gSelectMgr;
248 } 248 }
249 if( LLManip::LL_NO_PART != gToolTranslate->mManip->getHighlightedPart() ) 249
250 BOOL can_move = gToolTranslate->mManip->getSelection()->getObjectCount() != 0;
251 for (LLViewerObject* objectp = gToolTranslate->mManip->getSelection()->getFirstObject(); objectp; objectp = gToolTranslate->mManip->getSelection()->getNextObject())
252 {
253 can_move = can_move && objectp->permMove() && (objectp->permModify() || gSavedSettings.getBOOL("SelectLinkedSet"));
254 }
255
256 if( LLManip::LL_NO_PART != gToolTranslate->mManip->getHighlightedPart() && can_move)
250 { 257 {
251 gToolTranslate->setCurrentTool( gToolTranslate->mManip ); 258 gToolTranslate->setCurrentTool( gToolTranslate->mManip );
252 gToolTranslate->mManip->handleMouseDownOnPart( x, y, mask ); 259 gToolTranslate->mManip->handleMouseDownOnPart( x, y, mask );