diff options
Diffstat (limited to 'OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs')
-rw-r--r-- | OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs b/OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs index 60b0ce0..0bbd0db 100644 --- a/OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs +++ b/OpenSim/Region/PhysicsModules/UbitMeshing/Meshmerizer.cs | |||
@@ -95,29 +95,33 @@ namespace OpenSim.Region.PhysicsModule.UbitMeshing | |||
95 | IConfig start_config = config.Configs["Startup"]; | 95 | IConfig start_config = config.Configs["Startup"]; |
96 | IConfig mesh_config = config.Configs["Mesh"]; | 96 | IConfig mesh_config = config.Configs["Mesh"]; |
97 | 97 | ||
98 | string mesher = start_config.GetString("meshing", string.Empty); | ||
99 | if (mesher == Name) | ||
100 | { | ||
98 | 101 | ||
99 | float fcache = 48.0f; | 102 | float fcache = 48.0f; |
100 | // float fcache = 0.02f; | 103 | // float fcache = 0.02f; |
101 | 104 | ||
102 | if(mesh_config != null) | 105 | if (mesh_config != null) |
103 | { | ||
104 | useMeshiesPhysicsMesh = mesh_config.GetBoolean("UseMeshiesPhysicsMesh", useMeshiesPhysicsMesh); | ||
105 | if (useMeshiesPhysicsMesh) | ||
106 | { | 106 | { |
107 | doMeshFileCache = mesh_config.GetBoolean("MeshFileCache", doMeshFileCache); | 107 | useMeshiesPhysicsMesh = mesh_config.GetBoolean("UseMeshiesPhysicsMesh", useMeshiesPhysicsMesh); |
108 | cachePath = mesh_config.GetString("MeshFileCachePath", cachePath); | 108 | if (useMeshiesPhysicsMesh) |
109 | fcache = mesh_config.GetFloat("MeshFileCacheExpireHours", fcache); | 109 | { |
110 | doCacheExpire = mesh_config.GetBoolean("MeshFileCacheDoExpire", doCacheExpire); | 110 | doMeshFileCache = mesh_config.GetBoolean("MeshFileCache", doMeshFileCache); |
111 | } | 111 | cachePath = mesh_config.GetString("MeshFileCachePath", cachePath); |
112 | else | 112 | fcache = mesh_config.GetFloat("MeshFileCacheExpireHours", fcache); |
113 | { | 113 | doCacheExpire = mesh_config.GetBoolean("MeshFileCacheDoExpire", doCacheExpire); |
114 | doMeshFileCache = false; | 114 | } |
115 | doCacheExpire = false; | 115 | else |
116 | { | ||
117 | doMeshFileCache = false; | ||
118 | doCacheExpire = false; | ||
119 | } | ||
120 | m_Enabled = true; | ||
116 | } | 121 | } |
117 | } | ||
118 | |||
119 | CacheExpire = TimeSpan.FromHours(fcache); | ||
120 | 122 | ||
123 | CacheExpire = TimeSpan.FromHours(fcache); | ||
124 | } | ||
121 | } | 125 | } |
122 | public void Close() | 126 | public void Close() |
123 | { | 127 | { |