default colisionVolume is 0, use it only for user specified sound
parent
7cbc54d92a
commit
b743835f9e
|
@ -2661,10 +2661,13 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
bool IsNotVolumeDtc = !VolumeDetectActive;
|
bool IsNotVolumeDtc = !VolumeDetectActive;
|
||||||
|
|
||||||
if (IsNotVolumeDtc && startedColliders.Count > 0 && CollisionSoundVolume > 0.0f && CollisionSound != invalidCollisionSoundUUID)
|
if (IsNotVolumeDtc && startedColliders.Count > 0 && CollisionSound != invalidCollisionSoundUUID)
|
||||||
{
|
{
|
||||||
if (CollisionSound != UUID.Zero)
|
if (CollisionSound != UUID.Zero)
|
||||||
|
{
|
||||||
|
if (CollisionSoundVolume > 0.0f)
|
||||||
SendCollisionSound(CollisionSound, CollisionSoundVolume);
|
SendCollisionSound(CollisionSound, CollisionSoundVolume);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CollisionSounds.PartCollisionSound(this, startedColliders);
|
CollisionSounds.PartCollisionSound(this, startedColliders);
|
||||||
|
|
Loading…
Reference in New Issue