diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-09-10 19:15:58 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-09-10 19:15:58 +0300 |
commit | 9ffbca2489d5a556228717c09f86c2d28b6c8d73 (patch) | |
tree | 6c22f09d5a85cb6ef62f92ddabdaf06202dcdabb /indra/newview/llvoicevisualizer.cpp | |
parent | 100fab22f56969a6abe15b0dd58881002db02ab3 (diff) |
Allow the in world voice indicator to be toggled in preferences
Diffstat (limited to 'indra/newview/llvoicevisualizer.cpp')
-rw-r--r-- | indra/newview/llvoicevisualizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llvoicevisualizer.cpp b/indra/newview/llvoicevisualizer.cpp index 9412136272..7691ac54f3 100644 --- a/indra/newview/llvoicevisualizer.cpp +++ b/indra/newview/llvoicevisualizer.cpp @@ -337,7 +337,8 @@ void LLVoiceVisualizer::lipSyncOohAah( F32& ooh, F32& aah ) //--------------------------------------------------- void LLVoiceVisualizer::render() { - if ( ! mVoiceEnabled ) + static LLCachedControl<bool> show_visualizer(gSavedSettings, "VoiceVisualizerEnabled", false); + if (!mVoiceEnabled || !show_visualizer) { return; } |