* Initializes ODE only when a scene is grabbed rather than on plugin load.  This means we don't initialize ode if that physics engine is not used, and it allows other ode use 
plugins to be used instead.
0.6.1-post-fixes
Justin Clarke Casey 2008-12-04 20:29:34 +00:00
parent 38ca31b37a
commit b4db3a550a
1 changed files with 5 additions and 2 deletions

View File

@ -59,7 +59,6 @@ namespace OpenSim.Region.Physics.OdePlugin
public bool Init()
{
d.InitODE();
return true;
}
@ -67,6 +66,10 @@ namespace OpenSim.Region.Physics.OdePlugin
{
if (_mScene == null)
{
// Initializing ODE only when a scene is created allows alternative ODE plugins to co-habit (according to
// http://opensimulator.org/mantis/view.php?id=2750).
d.InitODE();
_mScene = new OdeScene(ode);
}
return (_mScene);