1
0
mirror of synced 2024-11-12 02:00:50 +01:00

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