SL-14879 "Play sounds from gestures" should not affect own sounds

meow-7.2.2
Andrey Kleshchev 2021-02-25 23:28:25 +02:00
parent 78b6aa6ffc
commit 811d2fcb1e
1 changed files with 6 additions and 1 deletions

View File

@ -3852,7 +3852,12 @@ void process_sound_trigger(LLMessageSystem *msg, void **)
}
// Don't play sounds from gestures if they are not enabled.
if (object_id == owner_id && !gSavedSettings.getBOOL("EnableGestureSounds"))
// Do play sounds triggered by avatar, since muting your own
// gesture sounds and your own sounds played inworld from
// Inventory can cause confusion.
if (object_id == owner_id
&& owner_id != gAgentID
&& !gSavedSettings.getBOOL("EnableGestureSounds"))
{
return;
}