mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
Merge branch '0.6.7-post-fixes' into vehicles
This commit is contained in:
@@ -97,7 +97,6 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
|
||||
// private float m_tensor = 5f;
|
||||
private int body_autodisable_frames = 20;
|
||||
private IMesh primMesh = null;
|
||||
|
||||
|
||||
private const CollisionCategories m_default_collisionFlags = (CollisionCategories.Geom
|
||||
@@ -825,14 +824,10 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
}
|
||||
}
|
||||
|
||||
IMesh oldMesh = primMesh;
|
||||
float[] vertexList = mesh.getVertexListAsFloatLocked(); // Note, that vertextList is pinned in memory
|
||||
int[] indexList = mesh.getIndexListAsIntLocked(); // Also pinned, needs release after usage
|
||||
|
||||
primMesh = mesh;
|
||||
|
||||
float[] vertexList = primMesh.getVertexListAsFloatLocked(); // Note, that vertextList is pinned in memory
|
||||
int[] indexList = primMesh.getIndexListAsIntLocked(); // Also pinned, needs release after usage
|
||||
|
||||
primMesh.releaseSourceMeshData(); // free up the original mesh data to save memory
|
||||
mesh.releaseSourceMeshData(); // free up the original mesh data to save memory
|
||||
|
||||
int VertexCount = vertexList.GetLength(0)/3;
|
||||
int IndexCount = indexList.GetLength(0);
|
||||
@@ -859,12 +854,6 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
return;
|
||||
}
|
||||
|
||||
if (oldMesh != null)
|
||||
{
|
||||
oldMesh.releasePinned();
|
||||
oldMesh = null;
|
||||
}
|
||||
|
||||
// if (IsPhysical && Body == (IntPtr) 0)
|
||||
// {
|
||||
// Recreate the body
|
||||
|
||||
Reference in New Issue
Block a user