diff options
author | Aura Linden <aura@lindenlab.com> | 2014-09-18 17:00:23 -0700 |
---|---|---|
committer | Aura Linden <aura@lindenlab.com> | 2014-09-18 17:00:23 -0700 |
commit | 951c83724d7e364ac52cbee2d657711fda7d2c26 (patch) | |
tree | 20b95debd0a3bb52f32df0db52d6dc91caf5793f /indra/newview/lltoolselect.cpp | |
parent | 78304e398fa7d4604eac98247173b33d712ec135 (diff) | |
parent | 61fb8c3fe31c73ce9121daac545aa7c8fc79ec8c (diff) |
Merged in viewer-tiger
Diffstat (limited to 'indra/newview/lltoolselect.cpp')
-rwxr-xr-x | indra/newview/lltoolselect.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/lltoolselect.cpp b/indra/newview/lltoolselect.cpp index 0a9153eecb..812abe9dbd 100755 --- a/indra/newview/lltoolselect.cpp +++ b/indra/newview/lltoolselect.cpp @@ -36,6 +36,7 @@ #include "llmanip.h" #include "llmenugl.h" #include "llselectmgr.h" +#include "llviewermediafocus.h" #include "lltoolmgr.h" #include "llfloaterscriptdebug.h" #include "llviewercamera.h" @@ -110,6 +111,21 @@ LLObjectSelectionHandle LLToolSelect::handleObjectSelection(const LLPickInfo& pi { BOOL already_selected = object->isSelected(); + if (already_selected && + object->getNumTEs() > 0 && + !LLSelectMgr::getInstance()->getSelection()->contains(object,SELECT_ALL_TES)) + { + const LLTextureEntry* tep = object->getTE(pick.mObjectFace); + if (tep && !tep->isSelected() && !LLViewerMediaFocus::getInstance()->getFocusedObjectID().isNull()) + { + // we were interacting with media and clicked on non selected face, drop media focus + LLViewerMediaFocus::getInstance()->clearFocus(); + // selection was removed and zoom preserved by clearFocus(), continue with regular selection + already_selected = false; + extend_select = true; + } + } + if ( extend_select ) { if ( already_selected ) |