Code consolidation. Redundant code moved into single function (checkMediaURL).

This commit is contained in:
Shyotl
2011-10-08 03:01:32 -05:00
parent 4b08f52332
commit 464b16e621
3 changed files with 55 additions and 56 deletions

View File

@@ -1880,7 +1880,7 @@ void LLSelectMgr::selectionSetFullbright(U8 fullbright)
void LLSelectMgr::selectionSetMediaTypeAndURL(U8 media_type, const std::string& media_url)
{
U8 media_flags = LLTextureEntry::MF_NONE;
if (media_type == LLViewerObject::MEDIA_TYPE_WEB_PAGE)
if (media_type == LLViewerObject::MEDIA_SET)
{
media_flags = LLTextureEntry::MF_HAS_MEDIA;
}