diff options
author | palange <palange@lindenlab.com> | 2009-11-05 17:54:51 -0800 |
---|---|---|
committer | palange <palange@lindenlab.com> | 2009-11-05 17:54:51 -0800 |
commit | 4ead03acd094d8418f9fe0f883e776ce8b209722 (patch) | |
tree | 1ae53248e9a643c9f27333aabc31ff0291e59b45 /indra/newview/llviewermediafocus.cpp | |
parent | ec32310c8602bf4dc69ed27e8c177cbd32c24411 (diff) | |
parent | 81192236ac44ea500ea6ec6f8de32be11e9165ca (diff) |
merge to viewer-2-0
Diffstat (limited to 'indra/newview/llviewermediafocus.cpp')
-rw-r--r-- | indra/newview/llviewermediafocus.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llviewermediafocus.cpp b/indra/newview/llviewermediafocus.cpp index 657c58364f..b2a0fa4b1c 100644 --- a/indra/newview/llviewermediafocus.cpp +++ b/indra/newview/llviewermediafocus.cpp @@ -77,6 +77,10 @@ void LLViewerMediaFocus::setFocusFace(LLPointer<LLViewerObject> objectp, S32 fac { old_media_impl->focus(false); } + + // Always clear the current selection. If we're setting focus on a face, we'll reselect the correct object below. + LLSelectMgr::getInstance()->deselectAll(); + mSelection = NULL; if (media_impl.notNull() && objectp.notNull()) { @@ -87,6 +91,9 @@ void LLViewerMediaFocus::setFocusFace(LLPointer<LLViewerObject> objectp, S32 fac mFocusedObjectFace = face; mFocusedObjectNormal = pick_normal; + // Set the selection in the selection manager so we can draw the focus ring. + mSelection = LLSelectMgr::getInstance()->selectObjectOnly(objectp, face); + // Focusing on a media face clears its disable flag. media_impl->setDisabled(false); |