More bntx fixes

This commit is contained in:
KillzXGaming 2019-07-21 09:56:47 -04:00
parent 6e4e50fb30
commit b9344b0d9f
2 changed files with 3 additions and 2 deletions

Binary file not shown.

View file

@ -1364,7 +1364,7 @@ namespace FirstPlugin
setting.SurfaceDim = surfaceDim;
var ImageDataCached = new List<List<byte[]>>();
if (Texture.TextureData != null)
if (Texture != null && Texture.TextureData != null)
ImageDataCached = Texture.TextureData;
switch (ext)
@ -1409,7 +1409,8 @@ namespace FirstPlugin
ImageDataCached[i] = Texture.TextureData[0];
}
Texture.TextureData = ImageDataCached;
if (ImageDataCached.Count > 0)
Texture.TextureData = ImageDataCached;
}
public void ApplyImportSettings(TextureImporterSettings setting,STCompressionMode CompressionMode)
{