If restating a region, clean up the physics scene after the main scene has been closed not before.

If this is done before then on ODE agent update calls still incoming can fail as they try to use a raycastmanager that has been disposed.
Bullet plugin does nothing on Dispose()
However, I wouldn't be at all surprised if individual region restarting was buggy in lots of other areas.
0.7.4.1
Justin Clark-Casey (justincc) 2012-05-26 01:55:35 +01:00
parent 3ac3be99ae
commit 43a6f28620
1 changed files with 4 additions and 4 deletions

View File

@ -1032,14 +1032,14 @@ namespace OpenSim.Region.Framework.Scenes
} }
} }
m_log.Error("[REGION]: Closing");
Close();
if (PhysicsScene != null) if (PhysicsScene != null)
{ {
PhysicsScene.Dispose(); PhysicsScene.Dispose();
} }
m_log.Error("[REGION]: Closing");
Close();
m_log.Error("[REGION]: Firing Region Restart Message"); m_log.Error("[REGION]: Firing Region Restart Message");
base.Restart(); base.Restart();