From 2f8b9cbf2b6da9e3914ce898e64b27894c5259a8 Mon Sep 17 00:00:00 2001 From: Teravus Ovares (Dan Olivares) Date: Tue, 8 Dec 2009 11:28:13 -0500 Subject: * Commit some sit code that's commented out for now. --- OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs') diff --git a/OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs b/OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs index 732e835..7314107 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs @@ -106,13 +106,20 @@ namespace OpenSim.Region.Physics.OdePlugin { if (m_PendingRequests.Count > 0) { + ODERayCastRequest[] reqs = m_PendingRequests.ToArray(); + for (int i = 0; i < reqs.Length; i++) + { + if (reqs[i].callbackMethod != null) // quick optimization here, don't raycast + RayCast(reqs[i]); // if there isn't anyone to send results + } + /* foreach (ODERayCastRequest req in m_PendingRequests) { if (req.callbackMethod != null) // quick optimization here, don't raycast RayCast(req); // if there isn't anyone to send results to } - + */ m_PendingRequests.Clear(); } } -- cgit v1.1