aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/PhysicsModules/Ode/Tests/ODETestClass.cs
diff options
context:
space:
mode:
authorUbitUmarov2015-09-09 18:53:24 +0100
committerUbitUmarov2015-09-09 18:53:24 +0100
commit47aa8107fd49039feb8dd95ec93e8ac80088e158 (patch)
treef8b6c11b111b19dfe45b4ccec62e179d9f78c4e8 /OpenSim/Region/PhysicsModules/Ode/Tests/ODETestClass.cs
parent found core hack to fix modules interdependencies RegionLoaded is not that ob... (diff)
downloadopensim-SC-47aa8107fd49039feb8dd95ec93e8ac80088e158.zip
opensim-SC-47aa8107fd49039feb8dd95ec93e8ac80088e158.tar.gz
opensim-SC-47aa8107fd49039feb8dd95ec93e8ac80088e158.tar.bz2
opensim-SC-47aa8107fd49039feb8dd95ec93e8ac80088e158.tar.xz
let old ode also have a Module class
Diffstat (limited to 'OpenSim/Region/PhysicsModules/Ode/Tests/ODETestClass.cs')
-rw-r--r--OpenSim/Region/PhysicsModules/Ode/Tests/ODETestClass.cs16
1 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim/Region/PhysicsModules/Ode/Tests/ODETestClass.cs b/OpenSim/Region/PhysicsModules/Ode/Tests/ODETestClass.cs
index 483e044..2c134e7 100644
--- a/OpenSim/Region/PhysicsModules/Ode/Tests/ODETestClass.cs
+++ b/OpenSim/Region/PhysicsModules/Ode/Tests/ODETestClass.cs
@@ -47,6 +47,8 @@ namespace OpenSim.Region.PhysicsModule.ODE.Tests
47 47
48 //private OpenSim.Region.PhysicsModule.ODE.OdePlugin cbt; 48 //private OpenSim.Region.PhysicsModule.ODE.OdePlugin cbt;
49 private PhysicsScene pScene; 49 private PhysicsScene pScene;
50 private OpenSim.Region.PhysicsModule.ODE.OdeModule odemodule;
51
50 52
51 [SetUp] 53 [SetUp]
52 public void Initialize() 54 public void Initialize()
@@ -71,13 +73,12 @@ namespace OpenSim.Region.PhysicsModule.ODE.Tests
71 //mod.AddRegion(scene); 73 //mod.AddRegion(scene);
72 //mod.RegionLoaded(scene); 74 //mod.RegionLoaded(scene);
73 75
74 pScene = new OdeScene(); 76 // pScene = new OdeScene();
75 Console.WriteLine("HERE " + (pScene == null ? "Null" : "Not null")); 77 odemodule = new OpenSim.Region.PhysicsModule.ODE.OdeModule();
76 INonSharedRegionModule mod = (pScene as INonSharedRegionModule); 78 Console.WriteLine("HERE " + (odemodule == null ? "Null" : "Not null"));
77 Console.WriteLine("HERE " + (mod == null ? "Null" : "Not null")); 79 odemodule.Initialise(openSimINI);
78 mod.Initialise(openSimINI); 80 odemodule.AddRegion(scene);
79 mod.AddRegion(scene); 81 odemodule.RegionLoaded(scene);
80 mod.RegionLoaded(scene);
81 82
82 // Loading ODEPlugin 83 // Loading ODEPlugin
83 //cbt = new OdePlugin(); 84 //cbt = new OdePlugin();
@@ -90,6 +91,7 @@ namespace OpenSim.Region.PhysicsModule.ODE.Tests
90 { 91 {
91 _heightmap[i] = 21f; 92 _heightmap[i] = 21f;
92 } 93 }
94 pScene = scene.PhysicsScene;
93 pScene.SetTerrain(_heightmap); 95 pScene.SetTerrain(_heightmap);
94 } 96 }
95 97