Switching sculpty from CSJ2K back to OpenJPEG for now until more kinks are ironed out
parent
e31024f08b
commit
2d470f8bde
|
@ -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); }
|
||||
|
|
Loading…
Reference in New Issue