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

View File

@ -500,13 +500,14 @@ namespace OpenSim.Region.PhysicsModule.ODE
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_frameWorkScene = pscene;
EngineType = pname;
PhysicsSceneName = EngineType + "/" + pscene.RegionInfo.RegionName;
EngineName = pname + " " + pversion;
pscene.RegisterModuleInterface<PhysicsScene>(this);
Vector3 extent = new Vector3(pscene.RegionInfo.RegionSizeX, pscene.RegionInfo.RegionSizeY, pscene.RegionInfo.RegionSizeZ);