mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
minor clean, letting small classes be own module class
This commit is contained in:
@@ -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()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user