diff options
author | Melanie | 2011-10-25 02:55:25 +0100 |
---|---|---|
committer | Melanie | 2011-10-25 02:55:25 +0100 |
commit | 10dff1da7fd9d17bc46d6cad30e31fde2e6ef3fa (patch) | |
tree | 32576784b66d3ae2bbb1ab5be62a4026b7f5efa0 /OpenSim/Region | |
parent | Merge commit 'f10a824e47549806c1fa647c4e9fba4c8cf6ad13' into bigmerge (diff) | |
parent | Don't bother taking OdeLock during OdeScene construction, since there can be ... (diff) | |
download | opensim-SC-10dff1da7fd9d17bc46d6cad30e31fde2e6ef3fa.zip opensim-SC-10dff1da7fd9d17bc46d6cad30e31fde2e6ef3fa.tar.gz opensim-SC-10dff1da7fd9d17bc46d6cad30e31fde2e6ef3fa.tar.bz2 opensim-SC-10dff1da7fd9d17bc46d6cad30e31fde2e6ef3fa.tar.xz |
Merge commit '1d4cd76e8a8c64da71fc384ff9c654d7f4f849c1' into bigmerge
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/OdeScene.cs | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs index 9b503fc..67ed66e 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs | |||
@@ -279,7 +279,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
279 | /// <summary> | 279 | /// <summary> |
280 | /// Used to lock the entire physics scene. Locked during the main part of Simulate() | 280 | /// Used to lock the entire physics scene. Locked during the main part of Simulate() |
281 | /// </summary> | 281 | /// </summary> |
282 | public Object OdeLock; | 282 | internal Object OdeLock = new Object(); |
283 | 283 | ||
284 | public IMesher mesher; | 284 | public IMesher mesher; |
285 | 285 | ||
@@ -315,27 +315,24 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
315 | m_log | 315 | m_log |
316 | = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + sceneIdentifier); | 316 | = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + sceneIdentifier); |
317 | 317 | ||
318 | OdeLock = new Object(); | ||
319 | nearCallback = near; | 318 | nearCallback = near; |
320 | triCallback = TriCallback; | 319 | triCallback = TriCallback; |
321 | triArrayCallback = TriArrayCallback; | 320 | triArrayCallback = TriArrayCallback; |
322 | m_rayCastManager = new ODERayCastRequestManager(this); | 321 | m_rayCastManager = new ODERayCastRequestManager(this); |
323 | lock (OdeLock) | ||
324 | { | ||
325 | // Create the world and the first space | ||
326 | world = d.WorldCreate(); | ||
327 | space = d.HashSpaceCreate(IntPtr.Zero); | ||
328 | 322 | ||
329 | contactgroup = d.JointGroupCreate(0); | 323 | // Create the world and the first space |
330 | //contactgroup | 324 | world = d.WorldCreate(); |
325 | space = d.HashSpaceCreate(IntPtr.Zero); | ||
331 | 326 | ||
332 | d.WorldSetAutoDisableFlag(world, false); | 327 | contactgroup = d.JointGroupCreate(0); |
333 | #if USE_DRAWSTUFF | 328 | //contactgroup |
334 | 329 | ||
335 | Thread viewthread = new Thread(new ParameterizedThreadStart(startvisualization)); | 330 | d.WorldSetAutoDisableFlag(world, false); |
336 | viewthread.Start(); | 331 | #if USE_DRAWSTUFF |
337 | #endif | 332 | |
338 | } | 333 | Thread viewthread = new Thread(new ParameterizedThreadStart(startvisualization)); |
334 | viewthread.Start(); | ||
335 | #endif | ||
339 | 336 | ||
340 | _watermap = new float[258 * 258]; | 337 | _watermap = new float[258 * 258]; |
341 | 338 | ||