mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 15:14:55 +00:00
More bntx fixes
This commit is contained in:
parent
6e4e50fb30
commit
b9344b0d9f
2 changed files with 3 additions and 2 deletions
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 a new issue