mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
* 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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user