fixed bug

This commit is contained in:
Perfare
2017-10-23 22:22:24 +08:00
parent 4666b378b3
commit 7ddbf3ce3e
3 changed files with 9 additions and 2 deletions

View File

@ -777,6 +777,8 @@ namespace Unity_Studio
public byte[] ConvertToContainer()
{
if (image_data == null || image_data.Length == 0)
return null;
switch (m_TextureFormat)
{
case TextureFormat.Alpha8: