mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-02 02:14:26 +00:00
ImageDeserializer - Add format check when deserializing
This commit is contained in:
@@ -847,11 +847,6 @@ namespace PckStudio
|
||||
{
|
||||
Image img = asset.GetTexture();
|
||||
|
||||
if (img.RawFormat != ImageFormat.Jpeg || img.RawFormat != ImageFormat.Png)
|
||||
{
|
||||
img = new Bitmap(img);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
previewPictureBox.Image = img;
|
||||
|
||||
Reference in New Issue
Block a user