mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
few minor changes on physics
This commit is contained in:
@@ -2744,8 +2744,7 @@ namespace OpenSim.Region.PhysicsModule.ODE
|
||||
waterlevel = baseheight;
|
||||
}
|
||||
|
||||
[HandleProcessCorruptedStateExceptions]
|
||||
public override void Dispose()
|
||||
public override void Dispose()
|
||||
{
|
||||
lock(SimulationLock)
|
||||
lock(OdeLock)
|
||||
|
||||
@@ -2210,7 +2210,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
m_terrainHeightsHandler.Free();
|
||||
m_terrainHeights = null;
|
||||
|
||||
if (m_contactsHandler != null && m_contactsHandler.IsAllocated)
|
||||
if (m_contactsHandler.IsAllocated)
|
||||
{
|
||||
m_contactsHandler.Free();
|
||||
ContactgeomsArray = IntPtr.Zero;
|
||||
|
||||
@@ -100,9 +100,6 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing
|
||||
|
||||
public unsafe Mesh Scale(Vector3 scale)
|
||||
{
|
||||
if (m_verticesPtr == null || m_indicesPtr == null)
|
||||
return null;
|
||||
|
||||
Mesh result = new Mesh(false);
|
||||
|
||||
float x = scale.X;
|
||||
|
||||
Reference in New Issue
Block a user