fix save obj material when not enabled wedge texcoords

This commit is contained in:
alemuntoni 2021-12-16 09:22:29 +01:00
parent ff62e5273a
commit 5cdefce22e
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ public:
mtl.Tr = (float)(f.C()[3])/255.0f;//alpha
}
if(m.textures.size() && f.WT(0).n() >=0 )
if(m.textures.size() && HasPerWedgeTexCoord(m) && f.WT(0).n() >=0 )
mtl.map_Kd = m.textures[f.WT(0).n()];
else
mtl.map_Kd = "";