diff options
author | Mike Antipov <mantipov@productengine.com> | 2010-02-11 09:49:57 +0200 |
---|---|---|
committer | Mike Antipov <mantipov@productengine.com> | 2010-02-11 09:49:57 +0200 |
commit | b0af6b8acb33c86e5ac8d693131b5c9e7d9407b5 (patch) | |
tree | dbe58da2c0ff07a8950548a513db31806f0308d4 /indra/newview/llviewertexture.cpp | |
parent | d3bde04a8c3a2cd142bb75dbcad577d083aad0d1 (diff) | |
parent | abae31cb4a26500012663cdc2a06a290ac4e46c9 (diff) |
Merge from default branch
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llviewertexture.cpp')
-rw-r--r-- | indra/newview/llviewertexture.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp index 9893eb5dce..984f003411 100644 --- a/indra/newview/llviewertexture.cpp +++ b/indra/newview/llviewertexture.cpp @@ -2995,6 +2995,10 @@ void LLViewerMediaTexture::initVirtualSize() void LLViewerMediaTexture::addMediaToFace(LLFace* facep) { + if(facep) + { + facep->setHasMedia(true) ; + } if(!mIsPlaying) { return ; //no need to add the face because the media is not in playing. @@ -3005,14 +3009,16 @@ void LLViewerMediaTexture::addMediaToFace(LLFace* facep) void LLViewerMediaTexture::removeMediaFromFace(LLFace* facep) { - if(!mIsPlaying) - { - return ; //no need to remove the face because the media is not in playing. - } if(!facep) { return ; } + facep->setHasMedia(false) ; + + if(!mIsPlaying) + { + return ; //no need to remove the face because the media is not in playing. + } mIsPlaying = FALSE ; //set to remove the media from the face. switchTexture(facep) ; |