* Added PhysicsScene.Dispose()

* In ODE, disposing of all of the ODE objects and the ODE World to reclaim memory when the simulator restarts.
This commit is contained in:
Teravus Ovares
2008-02-11 22:54:51 +00:00
parent 7647239f32
commit f603e57e9a
7 changed files with 45 additions and 1 deletions

View File

@@ -81,6 +81,8 @@ namespace OpenSim.Region.Physics.Manager
public abstract void DeleteTerrain();
public abstract void Dispose();
public abstract bool IsThreaded { get; }
private class NullPhysicsScene : PhysicsScene
@@ -157,6 +159,10 @@ namespace OpenSim.Region.Physics.Manager
{
get { return false; }
}
public override void Dispose()
{
}
}
}
}