diff options
author | Melanie | 2009-12-12 12:54:43 +0000 |
---|---|---|
committer | Melanie | 2009-12-12 12:54:43 +0000 |
commit | b310efc50f92d474f4b498fdb2d3a9a4144efae8 (patch) | |
tree | 2475da320221330f9f44f156e3c7b12bcd0decb7 /OpenSim/Region/Physics/OdePlugin | |
parent | Merge branch 'master' into careminster (diff) | |
parent | * Bugfix mantis 4441, "Use of Autopilot isn't playing any animations." (diff) | |
download | opensim-SC-b310efc50f92d474f4b498fdb2d3a9a4144efae8.zip opensim-SC-b310efc50f92d474f4b498fdb2d3a9a4144efae8.tar.gz opensim-SC-b310efc50f92d474f4b498fdb2d3a9a4144efae8.tar.bz2 opensim-SC-b310efc50f92d474f4b498fdb2d3a9a4144efae8.tar.xz |
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs | 9 |
1 files changed, 8 insertions, 1 deletions
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 | |||
106 | { | 106 | { |
107 | if (m_PendingRequests.Count > 0) | 107 | if (m_PendingRequests.Count > 0) |
108 | { | 108 | { |
109 | ODERayCastRequest[] reqs = m_PendingRequests.ToArray(); | ||
110 | for (int i = 0; i < reqs.Length; i++) | ||
111 | { | ||
112 | if (reqs[i].callbackMethod != null) // quick optimization here, don't raycast | ||
113 | RayCast(reqs[i]); // if there isn't anyone to send results | ||
114 | } | ||
115 | /* | ||
109 | foreach (ODERayCastRequest req in m_PendingRequests) | 116 | foreach (ODERayCastRequest req in m_PendingRequests) |
110 | { | 117 | { |
111 | if (req.callbackMethod != null) // quick optimization here, don't raycast | 118 | if (req.callbackMethod != null) // quick optimization here, don't raycast |
112 | RayCast(req); // if there isn't anyone to send results to | 119 | RayCast(req); // if there isn't anyone to send results to |
113 | 120 | ||
114 | } | 121 | } |
115 | 122 | */ | |
116 | m_PendingRequests.Clear(); | 123 | m_PendingRequests.Clear(); |
117 | } | 124 | } |
118 | } | 125 | } |