From 5e12bc452dc928e4f69eb5b92fbb66d756a0f64f Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 9 Sep 2015 19:03:31 +0100 Subject: [PATCH] minor clean, letting small classes be own module class --- OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs b/OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs index ea86bb3948..58a93a1c0d 100644 --- a/OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs +++ b/OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs @@ -93,15 +93,14 @@ namespace OpenSim.Region.PhysicsModule.UbitMeshing public void Initialise(IConfigSource config) { IConfig start_config = config.Configs["Startup"]; - IConfig mesh_config = config.Configs["Mesh"]; string mesher = start_config.GetString("meshing", string.Empty); if (mesher == Name) { - float fcache = 48.0f; // float fcache = 0.02f; + IConfig mesh_config = config.Configs["Mesh"]; if (mesh_config != null) { useMeshiesPhysicsMesh = mesh_config.GetBoolean("UseMeshiesPhysicsMesh", useMeshiesPhysicsMesh); @@ -117,12 +116,15 @@ namespace OpenSim.Region.PhysicsModule.UbitMeshing doMeshFileCache = false; doCacheExpire = false; } + m_Enabled = true; } CacheExpire = TimeSpan.FromHours(fcache); + } } + public void Close() { }