1
0
mirror of synced 2025-02-26 14:51:47 +01:00

And one more fix for generating

This commit is contained in:
KillzXGaming 2019-04-29 14:58:24 -04:00
parent 9aed684e16
commit 008a6de6c1
4 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -596,8 +596,10 @@ namespace Switch_Toolbox.Library.Forms
HasBeenEdited = false;
}
if (ActiveTexture.EditedImages != null) {
ActiveTexture.EditedImages[CurArrayDisplayLevel].bitmap.Dispose();
ActiveTexture.EditedImages[CurArrayDisplayLevel] = null;
}
progressBar.Value = 100;
}
@ -901,6 +903,7 @@ namespace Switch_Toolbox.Library.Forms
Image Image = pictureBoxCustom1.Image;
if (Image != null)
{
HasBeenEdited = true;
//Applying edits will generate mip maps
ApplyEdit();
UpdateEdit(Image);