mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-25 05:50:22 +00:00
Use first texture for 3ds materials
This commit is contained in:
parent
c220b6a3ed
commit
33ae4c5635
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue