add EngineName also to old ODE

LSLKeyTest
UbitUmarov 2016-07-04 08:55:19 +01:00
parent 1d9e343b7e
commit 2ebccbcd08
2 changed files with 8 additions and 2 deletions

View File

@ -25,6 +25,11 @@ namespace OpenSim.Region.PhysicsModule.ODE
get { return "OpenDynamicsEngine"; } get { return "OpenDynamicsEngine"; }
} }
public string Version
{
get { return "1.0"; }
}
public Type ReplaceableInterface public Type ReplaceableInterface
{ {
get { return null; } get { return null; }
@ -60,7 +65,7 @@ namespace OpenSim.Region.PhysicsModule.ODE
// http://opensimulator.org/mantis/view.php?id=2750). // http://opensimulator.org/mantis/view.php?id=2750).
d.InitODE(); d.InitODE();
m_scene = new OdeScene(scene, m_config, Name); m_scene = new OdeScene(scene, m_config, Name, Version);
} }
public void RemoveRegion(Scene scene) public void RemoveRegion(Scene scene)

View File

@ -500,13 +500,14 @@ namespace OpenSim.Region.PhysicsModule.ODE
public Scene m_frameWorkScene = null; public Scene m_frameWorkScene = null;
public OdeScene(Scene pscene, IConfigSource psourceconfig, string pname) public OdeScene(Scene pscene, IConfigSource psourceconfig, string pname, string pversion)
{ {
m_config = psourceconfig; m_config = psourceconfig;
m_frameWorkScene = pscene; m_frameWorkScene = pscene;
EngineType = pname; EngineType = pname;
PhysicsSceneName = EngineType + "/" + pscene.RegionInfo.RegionName; PhysicsSceneName = EngineType + "/" + pscene.RegionInfo.RegionName;
EngineName = pname + " " + pversion;
pscene.RegisterModuleInterface<PhysicsScene>(this); pscene.RegisterModuleInterface<PhysicsScene>(this);
Vector3 extent = new Vector3(pscene.RegionInfo.RegionSizeX, pscene.RegionInfo.RegionSizeY, pscene.RegionInfo.RegionSizeZ); Vector3 extent = new Vector3(pscene.RegionInfo.RegionSizeX, pscene.RegionInfo.RegionSizeY, pscene.RegionInfo.RegionSizeZ);