diff options
author | Jacek Antonelli | 2008-08-15 23:44:58 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:58 -0500 |
commit | 089fc07d207c71ce1401e72f09c31ad8c45872e2 (patch) | |
tree | 0028955add042c6f45b47a7b774adeeac9c592cb /linden/indra/newview/lltoolcomp.cpp | |
parent | Second Life viewer sources 1.16.0.5 (diff) | |
download | meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.zip meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.gz meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.bz2 meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.xz |
Second Life viewer sources 1.17.0.12
Diffstat (limited to 'linden/indra/newview/lltoolcomp.cpp')
-rw-r--r-- | linden/indra/newview/lltoolcomp.cpp | 9 |
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 ); |