Comment out calls to OdeScene.waitForSpaceUnlock() since that method does nothing right now
parent
4a99619bc0
commit
b528150d16
|
@ -556,7 +556,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
//CAPSULE_LENGTH = -5;
|
||||
//CAPSULE_RADIUS = -5;
|
||||
int dAMotorEuler = 1;
|
||||
_parent_scene.waitForSpaceUnlock(_parent_scene.space);
|
||||
// _parent_scene.waitForSpaceUnlock(_parent_scene.space);
|
||||
if (CAPSULE_LENGTH <= 0)
|
||||
{
|
||||
m_log.Warn("[ODE CHARACTER]: The capsule size you specified in opensim.ini is invalid! Setting it to the smallest possible size!");
|
||||
|
@ -1151,7 +1151,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
}
|
||||
|
||||
//kill the Geometry
|
||||
_parent_scene.waitForSpaceUnlock(_parent_scene.space);
|
||||
// _parent_scene.waitForSpaceUnlock(_parent_scene.space);
|
||||
|
||||
if (Body != IntPtr.Zero)
|
||||
{
|
||||
|
|
|
@ -865,7 +865,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
m_MeshToTriMeshMap[mesh] = _triMeshData;
|
||||
}
|
||||
|
||||
_parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
// _parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
try
|
||||
{
|
||||
if (prim_geom == IntPtr.Zero)
|
||||
|
@ -1388,7 +1388,7 @@ Console.WriteLine("CreateGeom:");
|
|||
{
|
||||
if (((_size.X / 2f) > 0f))
|
||||
{
|
||||
_parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
// _parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
try
|
||||
{
|
||||
//Console.WriteLine(" CreateGeom 1");
|
||||
|
@ -1402,7 +1402,7 @@ Console.WriteLine("CreateGeom:");
|
|||
}
|
||||
else
|
||||
{
|
||||
_parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
// _parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
try
|
||||
{
|
||||
//Console.WriteLine(" CreateGeom 2");
|
||||
|
@ -1417,7 +1417,7 @@ Console.WriteLine("CreateGeom:");
|
|||
}
|
||||
else
|
||||
{
|
||||
_parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
// _parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
try
|
||||
{
|
||||
//Console.WriteLine(" CreateGeom 3");
|
||||
|
@ -1432,7 +1432,7 @@ Console.WriteLine("CreateGeom:");
|
|||
}
|
||||
else
|
||||
{
|
||||
_parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
// _parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
try
|
||||
{
|
||||
//Console.WriteLine(" CreateGeom 4");
|
||||
|
@ -1585,17 +1585,17 @@ Console.WriteLine(" JointCreateFixed");
|
|||
{
|
||||
// string primScenAvatarIn = _parent_scene.whichspaceamIin(_position);
|
||||
// int[] arrayitem = _parent_scene.calculateSpaceArrayItemFromPos(_position);
|
||||
_parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
// _parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
|
||||
IntPtr tempspace = _parent_scene.recalculateSpaceForGeom(prim_geom, _position, m_targetSpace);
|
||||
m_targetSpace = tempspace;
|
||||
|
||||
_parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
// _parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
if (prim_geom != IntPtr.Zero)
|
||||
{
|
||||
d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z);
|
||||
|
||||
_parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
// _parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
d.SpaceAdd(m_targetSpace, prim_geom);
|
||||
}
|
||||
}
|
||||
|
@ -1986,7 +1986,7 @@ Console.WriteLine(" JointCreateFixed");
|
|||
|
||||
if (d.SpaceQuery(m_targetSpace, prim_geom))
|
||||
{
|
||||
_parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
// _parent_scene.waitForSpaceUnlock(m_targetSpace);
|
||||
d.SpaceRemove(m_targetSpace, prim_geom);
|
||||
}
|
||||
|
||||
|
|
|
@ -676,11 +676,11 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
}
|
||||
}
|
||||
|
||||
internal void waitForSpaceUnlock(IntPtr space)
|
||||
{
|
||||
//if (space != IntPtr.Zero)
|
||||
//while (d.SpaceLockQuery(space)) { } // Wait and do nothing
|
||||
}
|
||||
// internal void waitForSpaceUnlock(IntPtr space)
|
||||
// {
|
||||
// //if (space != IntPtr.Zero)
|
||||
// //while (d.SpaceLockQuery(space)) { } // Wait and do nothing
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// Debug space message for printing the space that a prim/avatar is in.
|
||||
|
@ -2305,7 +2305,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
{
|
||||
if (d.GeomIsSpace(currentspace))
|
||||
{
|
||||
waitForSpaceUnlock(currentspace);
|
||||
// waitForSpaceUnlock(currentspace);
|
||||
d.SpaceRemove(currentspace, geom);
|
||||
}
|
||||
else
|
||||
|
@ -2321,7 +2321,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
{
|
||||
if (d.GeomIsSpace(currentspace))
|
||||
{
|
||||
waitForSpaceUnlock(sGeomIsIn);
|
||||
// waitForSpaceUnlock(sGeomIsIn);
|
||||
d.SpaceRemove(sGeomIsIn, geom);
|
||||
}
|
||||
else
|
||||
|
@ -2339,8 +2339,8 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
{
|
||||
if (d.GeomIsSpace(currentspace))
|
||||
{
|
||||
waitForSpaceUnlock(currentspace);
|
||||
waitForSpaceUnlock(space);
|
||||
// waitForSpaceUnlock(currentspace);
|
||||
// waitForSpaceUnlock(space);
|
||||
d.SpaceRemove(space, currentspace);
|
||||
// free up memory used by the space.
|
||||
|
||||
|
@ -2364,7 +2364,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
{
|
||||
if (d.GeomIsSpace(currentspace))
|
||||
{
|
||||
waitForSpaceUnlock(currentspace);
|
||||
// waitForSpaceUnlock(currentspace);
|
||||
d.SpaceRemove(currentspace, geom);
|
||||
}
|
||||
else
|
||||
|
@ -2380,7 +2380,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
{
|
||||
if (d.GeomIsSpace(sGeomIsIn))
|
||||
{
|
||||
waitForSpaceUnlock(sGeomIsIn);
|
||||
// waitForSpaceUnlock(sGeomIsIn);
|
||||
d.SpaceRemove(sGeomIsIn, geom);
|
||||
}
|
||||
else
|
||||
|
@ -2419,9 +2419,10 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
// creating a new space for prim and inserting it into main space.
|
||||
staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY] = d.HashSpaceCreate(IntPtr.Zero);
|
||||
d.GeomSetCategoryBits(staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY], (int)CollisionCategories.Space);
|
||||
waitForSpaceUnlock(space);
|
||||
// waitForSpaceUnlock(space);
|
||||
d.SpaceSetSublevel(space, 1);
|
||||
d.SpaceAdd(space, staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY]);
|
||||
|
||||
return staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue