* Prevent an error from stopping startup when decoding the sculpt mesh j2k fails.
parent
61bba6375c
commit
bdcfc2e322
|
@ -53,7 +53,17 @@ namespace OpenSim.Region.Physics.Meshing
|
|||
if (_lod == 2f || _lod == 4f || _lod == 8f || _lod == 16f || _lod == 32f || _lod == 64f)
|
||||
lod = (int)_lod;
|
||||
|
||||
idata = OpenJPEG.DecodeToImage(jpegData);
|
||||
try
|
||||
{
|
||||
idata = OpenJPEG.DecodeToImage(jpegData);
|
||||
//int i = 0;
|
||||
//i = i / i;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
System.Console.WriteLine("[PHYSICS]: Unable to generate a Sculpty physics proxy. Sculpty texture decode failed!");
|
||||
return;
|
||||
}
|
||||
if (idata != null)
|
||||
{
|
||||
bBitmap = new Bitmap(idata);
|
||||
|
|
Loading…
Reference in New Issue