Create j2k cache directory if it doesn't exist. The Meshmerizer needs it there.

prioritization
Diva Canto 2009-09-30 19:42:14 -07:00
parent f6cc20940f
commit 1eb6f99d19
1 changed files with 14 additions and 0 deletions

View File

@ -77,6 +77,20 @@ namespace OpenSim.Region.Physics.Meshing
private float minSizeForComplexMesh = 0.2f; // prims with all dimensions smaller than this will have a bounding box mesh private float minSizeForComplexMesh = 0.2f; // prims with all dimensions smaller than this will have a bounding box mesh
public Meshmerizer()
{
try
{
if (!Directory.Exists(decodedScultMapPath))
Directory.CreateDirectory(decodedScultMapPath);
}
catch (Exception e)
{
m_log.WarnFormat("[SCULPT]: Unable to create {0} directory: ", decodedScultMapPath, e.Message);
}
}
/// <summary> /// <summary>
/// creates a simple box mesh of the specified size. This mesh is of very low vertex count and may /// creates a simple box mesh of the specified size. This mesh is of very low vertex count and may
/// be useful as a backup proxy when level of detail is not needed or when more complex meshes fail /// be useful as a backup proxy when level of detail is not needed or when more complex meshes fail