From f603e57e9ae9d9b7e3bf6b35924d99292cf6de43 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Mon, 11 Feb 2008 22:54:51 +0000 Subject: * Added PhysicsScene.Dispose() * In ODE, disposing of all of the ODE objects and the ODE World to reclaim memory when the simulator restarts. --- OpenSim/Region/Physics/Manager/PhysicsScene.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Region/Physics/Manager') diff --git a/OpenSim/Region/Physics/Manager/PhysicsScene.cs b/OpenSim/Region/Physics/Manager/PhysicsScene.cs index 00c0ff1..5f08898 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsScene.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsScene.cs @@ -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() + { + + } } } } \ No newline at end of file -- cgit v1.1