1
0
mirror of synced 2025-02-26 06:49:45 +01:00

Update the image only after decoding is entirely finished

This commit is contained in:
KillzXGaming 2019-08-01 21:11:57 -04:00
parent 531feeff78
commit 72cce64583

View File

@ -389,9 +389,6 @@ namespace Toolbox.Library.Forms
var image = ActiveTexture.GetBitmap(CurArrayDisplayLevel, CurMipDisplayLevel);
if (image != null)
UpdateTreeIcon(ActiveTexture, image);
//Keep base image for channel viewer updating/editing
if (image != null)
BaseImage = new Bitmap(image);
@ -456,8 +453,11 @@ namespace Toolbox.Library.Forms
// BitmapExtension.SetChannels(image, HasRedChannel, HasBlueChannel, HasGreenChannel, HasAlphaChannel);
PushImage(image);
}
if (image != null)
UpdateTreeIcon(ActiveTexture, image);
}
}
private bool HasZeroAlpha()