diff options
author | Rick Pasetto <rick@lindenlab.com> | 2009-12-14 12:03:44 -0800 |
---|---|---|
committer | Rick Pasetto <rick@lindenlab.com> | 2009-12-14 12:03:44 -0800 |
commit | da3ca7c5b9ce3493e99aa261a075dbc2ca16b5c9 (patch) | |
tree | 372137dfec61d712b223d7ded0a9ddbb0db7472c /indra/newview/llviewermedia.cpp | |
parent | 5e4d7ec715f496406644d52701cbabc2935fc1c3 (diff) |
Allow selection of media faces even if there is no impl. We record
the target object and use that fact to raise its interest level.
This is mostly a pass-off for monroe to take and run with
Diffstat (limited to 'indra/newview/llviewermedia.cpp')
-rw-r--r-- | indra/newview/llviewermedia.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp index 57e4ed0c1e..7c5b360b92 100644 --- a/indra/newview/llviewermedia.cpp +++ b/indra/newview/llviewermedia.cpp @@ -558,6 +558,20 @@ bool LLViewerMedia::getInWorldMediaDisabled() return sInWorldMediaDisabled; } +////////////////////////////////////////////////////////////////////////////////////////// +// static +bool LLViewerMedia::isInterestingEnough(const LLUUID &object_id, const F64 &object_interest) +{ + if (LLViewerMediaFocus::getInstance()->getFocusedObjectID() == object_id) + { + return true; + } + else { + // XXX HACK + return object_interest > 1023;// INTEREST_THRESHHOLD; + } +} + LLViewerMedia::impl_list &LLViewerMedia::getPriorityList() { return sViewerMediaImplList; |