From d923705c3cb9343293d7e340f88db39f05080bef Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Sun, 4 Apr 2021 17:08:54 -0400 Subject: [PATCH] BNTX : Quick fix for dims when importing cubemaps as DDS --- .../GUI/TextureUI/Importers/BNTX/TextureImporterSettings.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/File_Format_Library/GUI/TextureUI/Importers/BNTX/TextureImporterSettings.cs b/File_Format_Library/GUI/TextureUI/Importers/BNTX/TextureImporterSettings.cs index b2347b90..752d65c2 100644 --- a/File_Format_Library/GUI/TextureUI/Importers/BNTX/TextureImporterSettings.cs +++ b/File_Format_Library/GUI/TextureUI/Importers/BNTX/TextureImporterSettings.cs @@ -76,6 +76,9 @@ namespace FirstPlugin var surfaces = DDS.GetArrayFaces(dds, dds.ArrayCount); + if (dds.IsCubemap) + SurfaceDim = SurfaceDim.DimCube; + RedComp = dds.RedChannel; GreenComp = dds.GreenChannel; BlueComp = dds.BlueChannel;