mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 12:33:12 +00:00
Update image editor properly if edited
This commit is contained in:
parent
c0c1e621a4
commit
da46126e8b
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -728,6 +728,7 @@ namespace Toolbox.Library.Forms
|
|||
};
|
||||
|
||||
pictureBoxCustom1.Image = image;
|
||||
pictureBoxCustom1.Refresh();
|
||||
|
||||
TotalMipCount = ActiveTexture.MipCount - 1;
|
||||
TotalArrayCount = ActiveTexture.ArrayCount - 1;
|
||||
|
|
Loading…
Reference in a new issue