Create j2k cache directory if it doesn't exist. The Meshmerizer needs it there.
parent
f6cc20940f
commit
1eb6f99d19
|
@ -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
|
||||
|
||||
|
||||
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>
|
||||
/// 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
|
||||
|
|
Loading…
Reference in New Issue