mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-14 11:18:47 -05:00
Some refactor for Texture2DExtensions
This commit is contained in:
@@ -44,8 +44,7 @@ namespace AssetStudioGUI
|
||||
debugLog += sb.ToString();
|
||||
}
|
||||
|
||||
var image = m_Texture2D.ConvertToImage(flip: true);
|
||||
if (image == null)
|
||||
if (!m_Texture2D.TryConvertToImage(flip: true, out var image))
|
||||
{
|
||||
Logger.Warning($"Failed to convert texture \"{m_Texture2D.m_Name}\" into image");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user