Modify Sprite processing function as an extension function

This commit is contained in:
Perfare
2020-04-10 18:57:04 +08:00
parent b10d03d50d
commit 4a81c461e8
3 changed files with 3 additions and 3 deletions

View File

@ -287,7 +287,7 @@ namespace AssetStudioGUI
var exportFullName = exportPath + item.Text + "." + type.ToLower();
if (ExportFileExists(exportFullName))
return false;
var bitmap = SpriteHelper.GetImageFromSprite((Sprite)item.Asset);
var bitmap = ((Sprite)item.Asset).GetImage();
if (bitmap != null)
{
if (tga)