1
0
mirror of synced 2024-11-28 09:20:57 +01:00

Fix replacing cubemaps in nutexb

This commit is contained in:
KillzXGaming 2019-12-10 20:34:38 -05:00
parent 6913054fc7
commit 8149b9092b

View File

@ -337,7 +337,13 @@ namespace FirstPlugin
if (Width != tex.Texture.Width || Height != tex.Texture.Height)
throw new Exception("Image size must be the same!");
ImageData = tex.Texture.TextureData[0][0];
List<byte[]> data = new List<byte[]>();
foreach (var array in tex.Texture.TextureData)
data.Add(array[0]);
ImageData = Utils.CombineByteArray(data.ToArray());
data.Clear();
Width = tex.Texture.Width;
Height = tex.Texture.Height;