Added EnableGestureSoundsSelf to allow playing the user's gesture sounds even while EnableGestureSounds is false.
This commit is contained in:
@@ -5073,6 +5073,17 @@
|
|||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
</map>
|
</map>
|
||||||
|
<key>EnableGestureSoundsSelf</key>
|
||||||
|
<map>
|
||||||
|
<key>Comment</key>
|
||||||
|
<string>Play sounds from your gestures when EnableGestureSounds is false. (Useless otherewise)</string>
|
||||||
|
<key>Persist</key>
|
||||||
|
<integer>1</integer>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>Boolean</string>
|
||||||
|
<key>Value</key>
|
||||||
|
<integer>1</integer>
|
||||||
|
</map>
|
||||||
<key>EnableMouselook</key>
|
<key>EnableMouselook</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
|
|||||||
@@ -4853,7 +4853,9 @@ void process_sound_trigger(LLMessageSystem *msg, void **)
|
|||||||
// Don't play sounds from gestures if they are not enabled.
|
// Don't play sounds from gestures if they are not enabled.
|
||||||
if (object_id == owner_id && !gSavedSettings.getBOOL("EnableGestureSounds"))
|
if (object_id == owner_id && !gSavedSettings.getBOOL("EnableGestureSounds"))
|
||||||
{
|
{
|
||||||
return;
|
// Don't mute own gestures, if they're not muted.
|
||||||
|
if(owner_id != gAgent.getID() || !gSavedSettings.getBOOL("EnableGestureSoundsSelf"))
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// <edit>
|
// <edit>
|
||||||
|
|||||||
Reference in New Issue
Block a user