For ScenePresence collision events, instead of creating a new CollisionEventsThisFrame every time we need to send some new ones, reuse the existing one instead.

This assumes that the listener is using the data synchronously, which is currently the case.
This commit is contained in:
Justin Clark-Casey (justincc)
2011-10-25 22:19:17 +01:00
parent 7b6b36cee9
commit 5d37f0471e
3 changed files with 17 additions and 9 deletions

View File

@@ -2248,6 +2248,7 @@ namespace OpenSim.Region.Framework.Scenes
});
}
}
if (colliding.Count > 0)
{
StartCollidingMessage.Colliders = colliding;
@@ -2255,10 +2256,11 @@ namespace OpenSim.Region.Framework.Scenes
if (m_parentGroup.Scene == null)
return;
if (m_parentGroup.PassCollision == true)
{
//TODO: Add pass to root prim!
}
// if (m_parentGroup.PassCollision == true)
// {
// //TODO: Add pass to root prim!
// }
m_parentGroup.Scene.EventManager.TriggerScriptCollidingStart(LocalId, StartCollidingMessage);
}
}