mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user