make the case llCollisionSound("",1.0) more clear its retunring to default sounds, ie like a prim that never had this funtion called.

LSLKeyTest
UbitUmarov 2016-08-21 00:02:31 +01:00
parent 04dd2a9795
commit 3337ebe93c
1 changed files with 3 additions and 1 deletions

View File

@ -5120,8 +5120,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
m_host.CollisionSound = m_host.invalidCollisionSoundUUID;
if(impact_volume == 0.0)
m_host.CollisionSoundType = -1; // disable all sounds
else if(impact_volume == 1.0f)
m_host.CollisionSoundType = 0; // full return to default sounds
else
m_host.CollisionSoundType = 2; // allow change of default sounds volume
m_host.CollisionSoundType = 2; // default sounds with volume
return;
}
// TODO: Parameter check logic required.