1
0
mirror of synced 2024-11-12 02:00:50 +01:00

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;