make the case llCollisionSound("",1.0) more clear its retunring to default sounds, ie like a prim that never had this funtion called.
parent
04dd2a9795
commit
3337ebe93c
|
@ -5120,8 +5120,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
m_host.CollisionSound = m_host.invalidCollisionSoundUUID;
|
m_host.CollisionSound = m_host.invalidCollisionSoundUUID;
|
||||||
if(impact_volume == 0.0)
|
if(impact_volume == 0.0)
|
||||||
m_host.CollisionSoundType = -1; // disable all sounds
|
m_host.CollisionSoundType = -1; // disable all sounds
|
||||||
|
else if(impact_volume == 1.0f)
|
||||||
|
m_host.CollisionSoundType = 0; // full return to default sounds
|
||||||
else
|
else
|
||||||
m_host.CollisionSoundType = 2; // allow change of default sounds volume
|
m_host.CollisionSoundType = 2; // default sounds with volume
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// TODO: Parameter check logic required.
|
// TODO: Parameter check logic required.
|
||||||
|
|
Loading…
Reference in New Issue