From 2ebccbcd087aae4bd2273958fac7a4bbf9a3f2a7 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 4 Jul 2016 08:55:19 +0100 Subject: [PATCH] add EngineName also to old ODE --- OpenSim/Region/PhysicsModules/Ode/ODEModule.cs | 7 ++++++- OpenSim/Region/PhysicsModules/Ode/OdeScene.cs | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/PhysicsModules/Ode/ODEModule.cs b/OpenSim/Region/PhysicsModules/Ode/ODEModule.cs index ed50de3635..d61ee61c19 100644 --- a/OpenSim/Region/PhysicsModules/Ode/ODEModule.cs +++ b/OpenSim/Region/PhysicsModules/Ode/ODEModule.cs @@ -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) diff --git a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs index e23cca6030..8f9bccb489 100644 --- a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs +++ b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs @@ -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(this); Vector3 extent = new Vector3(pscene.RegionInfo.RegionSizeX, pscene.RegionInfo.RegionSizeY, pscene.RegionInfo.RegionSizeZ);