don't send colision events to volume detectors

avinationmerge
UbitUmarov 2012-05-15 01:40:46 +01:00
parent ebdbaba615
commit 325973d36f
1 changed files with 2 additions and 1 deletions

View File

@ -2631,6 +2631,7 @@ namespace OpenSim.Region.Framework.Scenes
SendSound(CollisionSound.ToString(), CollisionSoundVolume, true, (byte)0, 0, false, false);
SendCollisionEvent(scriptEvents.collision_start, startedColliders, ParentGroup.Scene.EventManager.TriggerScriptCollidingStart);
if(!ParentGroup.RootPart.VolumeDetectActive)
SendCollisionEvent(scriptEvents.collision , m_lastColliders , ParentGroup.Scene.EventManager.TriggerScriptColliding);
SendCollisionEvent(scriptEvents.collision_end , endedColliders , ParentGroup.Scene.EventManager.TriggerScriptCollidingEnd);