few minor changes on physics

This commit is contained in:
UbitUmarov
2022-10-02 11:46:03 +01:00
parent b1bde3c8f1
commit 62d56df5b4
3 changed files with 2 additions and 6 deletions

View File

@@ -2744,8 +2744,7 @@ namespace OpenSim.Region.PhysicsModule.ODE
waterlevel = baseheight;
}
[HandleProcessCorruptedStateExceptions]
public override void Dispose()
public override void Dispose()
{
lock(SimulationLock)
lock(OdeLock)

View File

@@ -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;

View File

@@ -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;