Fix vertex texture coordinates export in OBJ exporter (Thanks to Manuel Massing for the patch)

This commit is contained in:
Jan Möbius
2018-01-26 13:18:18 +01:00
parent 7856a4371b
commit 2fb55bc26d
2 changed files with 3 additions and 2 deletions

View File

@@ -270,10 +270,10 @@ write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _prec
}
}
//collect Texturevertices from vertices
//collect Texture coordinates from vertices
if(_opt.check(Options::VertexTexCoord))
{
for (size_t i=0, nF=_be.n_faces(); i<nF; ++i)
for (size_t i=0, nV=_be.n_vertices(); i<nV; ++i)
{
vh = VertexHandle(static_cast<int>(i));
t = _be.texcoord(vh);