More bntx fixes
This commit is contained in:
parent
6e4e50fb30
commit
b9344b0d9f
Binary file not shown.
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user