diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2010-10-13 19:24:09 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2010-10-13 19:24:09 -0600 |
commit | d947dbacdf68e23139bd0799af5f9ca3fce0bb7d (patch) | |
tree | e9337cf456ee254e7e2ba090f61aa35ad312f53f /indra/newview | |
parent | 9737f2b73f75f0320079abe598bb3107d8e3668d (diff) | |
parent | aac0d48d7d97730c95cfb541e303167a8e28d369 (diff) |
Merge
Diffstat (limited to 'indra/newview')
-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 c31714de5a..7d8c1405ec 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -2326,8 +2326,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 ) { //---------------------------------------------------------------- |