Skip to content

Commit

Permalink
TextureEditor: Don't crash on exporting texture packs with indexed te…
Browse files Browse the repository at this point in the history
…xtures
  • Loading branch information
PiKeyAr committed Nov 13, 2024
1 parent 9cd8a1d commit acc5747
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TextureEditor/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,7 @@ private void exportTexturePackToolStripMenuItem_Click(object sender, EventArgs e
bmp = ProcessIndexedBitmap(tex, indexedfmt);
bmp.Save(Path.Combine(dir, tex.Name + ".png"));
bmp.Save(tex.TextureData, ImageFormat.Png);
exportData = tex.TextureData;
}
// Non-indexed
else
Expand Down

0 comments on commit acc5747

Please sign in to comment.