* 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

@@ -472,6 +472,11 @@ namespace OpenSim.Region.Environment.Scenes
// This causes the region to restart immediatley.
public void RestartNow()
{
if (PhysicsScene != null)
{
PhysicsScene.Dispose();
}
m_log.Error("[REGION]: Closing");
Close();
m_log.Error("[REGION]: Firing Region Restart Message");