aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorDiva Canto2009-09-30 19:42:14 -0700
committerDiva Canto2009-09-30 20:27:40 -0700
commit1eb6f99d19762e230c6ca905ffd99741b33db491 (patch)
tree4c6d8d532503e08188f324675d4fed0a14b838a6 /OpenSim/Region
parentTaking the opportunity to delete unnecessary text files from the Prebuild fol... (diff)
downloadopensim-SC_OLD-1eb6f99d19762e230c6ca905ffd99741b33db491.zip
opensim-SC_OLD-1eb6f99d19762e230c6ca905ffd99741b33db491.tar.gz
opensim-SC_OLD-1eb6f99d19762e230c6ca905ffd99741b33db491.tar.bz2
opensim-SC_OLD-1eb6f99d19762e230c6ca905ffd99741b33db491.tar.xz
Create j2k cache directory if it doesn't exist. The Meshmerizer needs it there.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Physics/Meshing/Meshmerizer.cs14
1 files changed, 14 insertions, 0 deletions
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
77 private float minSizeForComplexMesh = 0.2f; // prims with all dimensions smaller than this will have a bounding box mesh 77 private float minSizeForComplexMesh = 0.2f; // prims with all dimensions smaller than this will have a bounding box mesh
78 78
79 79
80 public Meshmerizer()
81 {
82 try
83 {
84 if (!Directory.Exists(decodedScultMapPath))
85 Directory.CreateDirectory(decodedScultMapPath);
86 }
87 catch (Exception e)
88 {
89 m_log.WarnFormat("[SCULPT]: Unable to create {0} directory: ", decodedScultMapPath, e.Message);
90 }
91
92 }
93
80 /// <summary> 94 /// <summary>
81 /// creates a simple box mesh of the specified size. This mesh is of very low vertex count and may 95 /// creates a simple box mesh of the specified size. This mesh is of very low vertex count and may
82 /// be useful as a backup proxy when level of detail is not needed or when more complex meshes fail 96 /// be useful as a backup proxy when level of detail is not needed or when more complex meshes fail