aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin/OdeScene.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/OdeScene.cs')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/OdeScene.cs25
1 files changed, 13 insertions, 12 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs
index 9c3c077..b952b30 100644
--- a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs
+++ b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs
@@ -679,11 +679,11 @@ namespace OpenSim.Region.Physics.OdePlugin
679 } 679 }
680 } 680 }
681 681
682 internal void waitForSpaceUnlock(IntPtr space) 682// internal void waitForSpaceUnlock(IntPtr space)
683 { 683// {
684 //if (space != IntPtr.Zero) 684// //if (space != IntPtr.Zero)
685 //while (d.SpaceLockQuery(space)) { } // Wait and do nothing 685// //while (d.SpaceLockQuery(space)) { } // Wait and do nothing
686 } 686// }
687 687
688// /// <summary> 688// /// <summary>
689// /// Debug space message for printing the space that a prim/avatar is in. 689// /// Debug space message for printing the space that a prim/avatar is in.
@@ -2303,7 +2303,7 @@ namespace OpenSim.Region.Physics.OdePlugin
2303 { 2303 {
2304 if (d.GeomIsSpace(currentspace)) 2304 if (d.GeomIsSpace(currentspace))
2305 { 2305 {
2306 waitForSpaceUnlock(currentspace); 2306// waitForSpaceUnlock(currentspace);
2307 d.SpaceRemove(currentspace, geom); 2307 d.SpaceRemove(currentspace, geom);
2308 } 2308 }
2309 else 2309 else
@@ -2319,7 +2319,7 @@ namespace OpenSim.Region.Physics.OdePlugin
2319 { 2319 {
2320 if (d.GeomIsSpace(currentspace)) 2320 if (d.GeomIsSpace(currentspace))
2321 { 2321 {
2322 waitForSpaceUnlock(sGeomIsIn); 2322// waitForSpaceUnlock(sGeomIsIn);
2323 d.SpaceRemove(sGeomIsIn, geom); 2323 d.SpaceRemove(sGeomIsIn, geom);
2324 } 2324 }
2325 else 2325 else
@@ -2337,8 +2337,8 @@ namespace OpenSim.Region.Physics.OdePlugin
2337 { 2337 {
2338 if (d.GeomIsSpace(currentspace)) 2338 if (d.GeomIsSpace(currentspace))
2339 { 2339 {
2340 waitForSpaceUnlock(currentspace); 2340// waitForSpaceUnlock(currentspace);
2341 waitForSpaceUnlock(space); 2341// waitForSpaceUnlock(space);
2342 d.SpaceRemove(space, currentspace); 2342 d.SpaceRemove(space, currentspace);
2343 // free up memory used by the space. 2343 // free up memory used by the space.
2344 2344
@@ -2362,7 +2362,7 @@ namespace OpenSim.Region.Physics.OdePlugin
2362 { 2362 {
2363 if (d.GeomIsSpace(currentspace)) 2363 if (d.GeomIsSpace(currentspace))
2364 { 2364 {
2365 waitForSpaceUnlock(currentspace); 2365// waitForSpaceUnlock(currentspace);
2366 d.SpaceRemove(currentspace, geom); 2366 d.SpaceRemove(currentspace, geom);
2367 } 2367 }
2368 else 2368 else
@@ -2378,7 +2378,7 @@ namespace OpenSim.Region.Physics.OdePlugin
2378 { 2378 {
2379 if (d.GeomIsSpace(sGeomIsIn)) 2379 if (d.GeomIsSpace(sGeomIsIn))
2380 { 2380 {
2381 waitForSpaceUnlock(sGeomIsIn); 2381// waitForSpaceUnlock(sGeomIsIn);
2382 d.SpaceRemove(sGeomIsIn, geom); 2382 d.SpaceRemove(sGeomIsIn, geom);
2383 } 2383 }
2384 else 2384 else
@@ -2417,9 +2417,10 @@ namespace OpenSim.Region.Physics.OdePlugin
2417 // creating a new space for prim and inserting it into main space. 2417 // creating a new space for prim and inserting it into main space.
2418 staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY] = d.HashSpaceCreate(IntPtr.Zero); 2418 staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY] = d.HashSpaceCreate(IntPtr.Zero);
2419 d.GeomSetCategoryBits(staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY], (int)CollisionCategories.Space); 2419 d.GeomSetCategoryBits(staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY], (int)CollisionCategories.Space);
2420 waitForSpaceUnlock(space); 2420// waitForSpaceUnlock(space);
2421 d.SpaceSetSublevel(space, 1); 2421 d.SpaceSetSublevel(space, 1);
2422 d.SpaceAdd(space, staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY]); 2422 d.SpaceAdd(space, staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY]);
2423
2423 return staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY]; 2424 return staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY];
2424 } 2425 }
2425 2426