Improve support for Tuanjie 1.10+

This commit is contained in:
VaDiM
2026-09-21 00:49:50 +03:00
parent 3479fe5c04
commit 9790620f34
8 changed files with 41 additions and 5 deletions
+2 -1
View File
@@ -46,7 +46,8 @@ namespace AssetStudioGUI
debugLog += sb.ToString();
}
if (type == ImageFormat.Png && m_Texture2D.m_TextureFormat.IsPng())
if ((type == ImageFormat.Png && m_Texture2D.m_TextureFormat.IsPng())
|| (type == ImageFormat.Webp && m_Texture2D.m_TextureFormat.IsWebP()))
{
File.WriteAllBytes(exportFullPath, m_Texture2D.image_data.GetData());
debugLog += $"{item.TypeString} \"{item.Text}\" exported to \"{exportFullPath}\"";