diff options
author | Richard Linden <none@none> | 2010-12-08 16:04:07 -0800 |
---|---|---|
committer | Richard Linden <none@none> | 2010-12-08 16:04:07 -0800 |
commit | ca2141ce90d484284bf57d72feb82e290958b061 (patch) | |
tree | 0e2ea77f0b7c2a9c9f9e69c09c0be22567afac3b /indra/newview/llvoavatar.cpp | |
parent | d9b4570883652d647c05083c18fac1a088efd6e2 (diff) | |
parent | c28b476a6806a426593e6798ea537f13ca354fc8 (diff) |
merge with viewer-dev
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r-- | indra/newview/llvoavatar.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index f4dec9294f..bb4c5b1804 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -2333,8 +2333,19 @@ BOOL LLVOAvatar::idleUpdate(LLAgent &agent, LLWorld &world, const F64 &time) void LLVOAvatar::idleUpdateVoiceVisualizer(bool voice_enabled) { - // disable voice visualizer when in mouselook - mVoiceVisualizer->setVoiceEnabled( voice_enabled && !(isSelf() && gAgentCamera.cameraMouselook()) ); + bool render_visualizer = voice_enabled; + + // Don't render the user's own voice visualizer when in mouselook, or when opening the mic is disabled. + if(isSelf()) + { + if(gAgentCamera.cameraMouselook() || gSavedSettings.getBOOL("VoiceDisableMic")) + { + render_visualizer = false; + } + } + + mVoiceVisualizer->setVoiceEnabled(render_visualizer); + if ( voice_enabled ) { //---------------------------------------------------------------- |