Update image editor properly if edited

This commit is contained in:
KillzXGaming 2019-07-19 15:27:30 -04:00
parent c0c1e621a4
commit da46126e8b
2 changed files with 3 additions and 2 deletions

View file

@ -30,7 +30,7 @@ namespace Toolbox.Library
}
}
public override bool CanEdit { get; set; } = false;
public override bool CanEdit { get; set; } = true;
public bool CanSave { get; set; } = false;
public bool FileIsEdited { get; set; } = false;
@ -786,7 +786,7 @@ namespace Toolbox.Library
public override void SetImageData(Bitmap bitmap, int ArrayLevel)
{
throw new NotImplementedException("Cannot set image data! Operation not implemented!");
bdata = GenerateMipsAndCompress(bitmap, MipCount, Format);
}
//Todo create actual cube map conversion with Renderable Texture from generic one

View file

@ -728,6 +728,7 @@ namespace Toolbox.Library.Forms
};
pictureBoxCustom1.Image = image;
pictureBoxCustom1.Refresh();
TotalMipCount = ActiveTexture.MipCount - 1;
TotalArrayCount = ActiveTexture.ArrayCount - 1;