Use first texture for 3ds materials

This commit is contained in:
KillzXGaming 2020-04-14 15:32:59 -04:00
parent c220b6a3ed
commit 33ae4c5635

View file

@ -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;
}