From 1eb6f99d19762e230c6ca905ffd99741b33db491 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Wed, 30 Sep 2009 19:42:14 -0700 Subject: Create j2k cache directory if it doesn't exist. The Meshmerizer needs it there. --- OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/Region/Physics/Meshing/Meshmerizer.cs') diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index f469ad6..aa8df23 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs @@ -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); + } + + } + /// /// 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 -- cgit v1.1