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.3-extended
Justin Clark-Casey (justincc) 2012-05-26 01:55:35 +01:00
parent 7358e5748d
commit 20a3907e86
1 changed files with 4 additions and 4 deletions

View File

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