diff options
Diffstat (limited to 'OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs')
-rw-r--r-- | OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs index c231787..b53beda 100644 --- a/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs +++ b/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs | |||
@@ -281,8 +281,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
281 | public IntPtr StaticSpace; // space for the static things around | 281 | public IntPtr StaticSpace; // space for the static things around |
282 | public IntPtr GroundSpace; // space for ground | 282 | public IntPtr GroundSpace; // space for ground |
283 | 283 | ||
284 | public Object OdeLock; | 284 | public object OdeLock = new object(); |
285 | public static Object SimulationLock; | 285 | // public static object SimulationLock = new object(); |
286 | 286 | ||
287 | public IMesher mesher; | 287 | public IMesher mesher; |
288 | 288 | ||
@@ -310,8 +310,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
310 | 310 | ||
311 | public ODEScene(Scene pscene, IConfigSource psourceconfig, string pname, string pversion, bool pOSOdeLib) | 311 | public ODEScene(Scene pscene, IConfigSource psourceconfig, string pname, string pversion, bool pOSOdeLib) |
312 | { | 312 | { |
313 | OdeLock = new Object(); | ||
314 | |||
315 | EngineType = pname; | 313 | EngineType = pname; |
316 | PhysicsSceneName = EngineType + "/" + pscene.RegionInfo.RegionName; | 314 | PhysicsSceneName = EngineType + "/" + pscene.RegionInfo.RegionName; |
317 | EngineName = pname + " " + pversion; | 315 | EngineName = pname + " " + pversion; |
@@ -348,8 +346,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
348 | { | 346 | { |
349 | SafeNativeMethods.AllocateODEDataForThread(~0U); | 347 | SafeNativeMethods.AllocateODEDataForThread(~0U); |
350 | 348 | ||
351 | SimulationLock = new Object(); | ||
352 | |||
353 | nearCallback = near; | 349 | nearCallback = near; |
354 | 350 | ||
355 | m_rayCastManager = new ODERayCastRequestManager(this); | 351 | m_rayCastManager = new ODERayCastRequestManager(this); |
@@ -1512,8 +1508,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
1512 | int nodeframes = 0; | 1508 | int nodeframes = 0; |
1513 | float fps = 0; | 1509 | float fps = 0; |
1514 | 1510 | ||
1515 | lock (SimulationLock) | 1511 | lock(OdeLock) |
1516 | lock(OdeLock) | ||
1517 | { | 1512 | { |
1518 | if (world == IntPtr.Zero) | 1513 | if (world == IntPtr.Zero) |
1519 | { | 1514 | { |