From 2d470f8bde768e97eb9bd031c945b868931221fd Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Wed, 28 Oct 2009 01:48:53 -0700 Subject: Switching sculpty from CSJ2K back to OpenJPEG for now until more kinks are ironed out --- OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index ed93b3a..fded95e 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs @@ -284,9 +284,13 @@ namespace OpenSim.Region.Physics.Meshing try { - idata = CSJ2K.J2kImage.FromBytes(primShape.SculptData); + OpenMetaverse.Imaging.ManagedImage unusedData; + OpenMetaverse.Imaging.OpenJPEG.DecodeToImage(primShape.SculptData, out unusedData, out idata); + unusedData = null; - if (cacheSculptMaps) + //idata = CSJ2K.J2kImage.FromBytes(primShape.SculptData); + + if (cacheSculptMaps && idata != null) { try { idata.Save(decodedSculptFileName, ImageFormat.MemoryBmp); } catch (Exception e) { m_log.Error("[SCULPT]: unable to cache sculpt map " + decodedSculptFileName + " " + e.Message); } -- cgit v1.1