diff options
author | UbitUmarov | 2015-09-09 19:03:31 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-09 19:03:31 +0100 |
commit | 5e12bc452dc928e4f69eb5b92fbb66d756a0f64f (patch) | |
tree | 103cab4376e4960f69e8c6388bd52f242f076e00 /OpenSim/Region/PhysicsModules | |
parent | let old ode also have a Module class (diff) | |
download | opensim-SC_OLD-5e12bc452dc928e4f69eb5b92fbb66d756a0f64f.zip opensim-SC_OLD-5e12bc452dc928e4f69eb5b92fbb66d756a0f64f.tar.gz opensim-SC_OLD-5e12bc452dc928e4f69eb5b92fbb66d756a0f64f.tar.bz2 opensim-SC_OLD-5e12bc452dc928e4f69eb5b92fbb66d756a0f64f.tar.xz |
minor clean, letting small classes be own module class
Diffstat (limited to 'OpenSim/Region/PhysicsModules')
-rw-r--r-- | OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs b/OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs index ea86bb3..58a93a1 100644 --- a/OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs +++ b/OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs | |||
@@ -93,15 +93,14 @@ namespace OpenSim.Region.PhysicsModule.UbitMeshing | |||
93 | public void Initialise(IConfigSource config) | 93 | public void Initialise(IConfigSource config) |
94 | { | 94 | { |
95 | IConfig start_config = config.Configs["Startup"]; | 95 | IConfig start_config = config.Configs["Startup"]; |
96 | IConfig mesh_config = config.Configs["Mesh"]; | ||
97 | 96 | ||
98 | string mesher = start_config.GetString("meshing", string.Empty); | 97 | string mesher = start_config.GetString("meshing", string.Empty); |
99 | if (mesher == Name) | 98 | if (mesher == Name) |
100 | { | 99 | { |
101 | |||
102 | float fcache = 48.0f; | 100 | float fcache = 48.0f; |
103 | // float fcache = 0.02f; | 101 | // float fcache = 0.02f; |
104 | 102 | ||
103 | IConfig mesh_config = config.Configs["Mesh"]; | ||
105 | if (mesh_config != null) | 104 | if (mesh_config != null) |
106 | { | 105 | { |
107 | useMeshiesPhysicsMesh = mesh_config.GetBoolean("UseMeshiesPhysicsMesh", useMeshiesPhysicsMesh); | 106 | useMeshiesPhysicsMesh = mesh_config.GetBoolean("UseMeshiesPhysicsMesh", useMeshiesPhysicsMesh); |
@@ -117,12 +116,15 @@ namespace OpenSim.Region.PhysicsModule.UbitMeshing | |||
117 | doMeshFileCache = false; | 116 | doMeshFileCache = false; |
118 | doCacheExpire = false; | 117 | doCacheExpire = false; |
119 | } | 118 | } |
119 | |||
120 | m_Enabled = true; | 120 | m_Enabled = true; |
121 | } | 121 | } |
122 | 122 | ||
123 | CacheExpire = TimeSpan.FromHours(fcache); | 123 | CacheExpire = TimeSpan.FromHours(fcache); |
124 | |||
124 | } | 125 | } |
125 | } | 126 | } |
127 | |||
126 | public void Close() | 128 | public void Close() |
127 | { | 129 | { |
128 | } | 130 | } |