* Removes the console enumeration errors on sim start.

afrisby
Teravus Ovares 2007-11-14 16:12:59 +00:00
parent ccd08ae3d0
commit cb6ec3d0f7
1 changed files with 21 additions and 11 deletions

View File

@ -404,10 +404,13 @@ namespace OpenSim.Region.Physics.OdePlugin
public void remActivePrim(OdePrim deactivatePrim)
{
lock (OdeLock)
{
lock (_activeprims)
{
_activeprims.Remove(deactivatePrim);
}
}
}
public int TriArrayCallback(IntPtr trimesh, IntPtr refObject, int[] triangleIndex, int triCount)
{
/* String name1 = null;
@ -1174,7 +1177,12 @@ namespace OpenSim.Region.Physics.OdePlugin
_mesh = mesh;
_pbs = pbs;
_parent_scene = parent_scene;
if (pos.Z < 0)
m_isphysical = false;
else
m_isphysical = pisPhysical;
m_primName = primName;
@ -1581,7 +1589,8 @@ namespace OpenSim.Region.Physics.OdePlugin
// Sim resources and memory.
// Disables the prim's movement physics....
// It's a hack and will generate a console message if it fails.
lock (OdeScene.OdeLock)
{
try
{
disableBody();
@ -1596,6 +1605,7 @@ namespace OpenSim.Region.Physics.OdePlugin
}
}
}
IsPhysical = false;
_velocity.X = 0;