* Removes the console enumeration errors on sim start.
parent
ccd08ae3d0
commit
cb6ec3d0f7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue