1
0
mirror of synced 2024-11-29 01:34:42 +01:00

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)
{