From 33ae4c5635ebb5a70932172c8b65b217462bb933 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Tue, 14 Apr 2020 15:32:59 -0400 Subject: [PATCH] Use first texture for 3ds materials --- .../FileFormats/BCH/Wrappers/Model/H3DMaterialWrapper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/File_Format_Library/FileFormats/BCH/Wrappers/Model/H3DMaterialWrapper.cs b/File_Format_Library/FileFormats/BCH/Wrappers/Model/H3DMaterialWrapper.cs index eb093361..7ccf5b20 100644 --- a/File_Format_Library/FileFormats/BCH/Wrappers/Model/H3DMaterialWrapper.cs +++ b/File_Format_Library/FileFormats/BCH/Wrappers/Model/H3DMaterialWrapper.cs @@ -121,7 +121,7 @@ namespace FirstPlugin.CtrLibrary if (Material.TextureMappers.Length > i) { var mapper = Material.TextureMappers[i]; - if (mapper.SamplerType == 0) + if (TextureMaps.Count == 0) //first texture added { matTexture.Type = STGenericMatTexture.TextureType.Diffuse; }