From b3417e5a88bf736132fa5bac0559f7db2ba98cc7 Mon Sep 17 00:00:00 2001 From: Martin Schultz Date: Tue, 24 Oct 2017 17:06:41 +0200 Subject: [PATCH] applied fix for bad or missing vertex tex coords --- src/OpenMesh/Core/IO/writer/OBJWriter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenMesh/Core/IO/writer/OBJWriter.cc b/src/OpenMesh/Core/IO/writer/OBJWriter.cc index 66cf3b3f..698e8bae 100644 --- a/src/OpenMesh/Core/IO/writer/OBJWriter.cc +++ b/src/OpenMesh/Core/IO/writer/OBJWriter.cc @@ -363,7 +363,7 @@ write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _prec { // write vertex texture coordinate index if (_opt.check(Options::VertexTexCoord)) - _out << texMap[_be.texcoord(vh)]; + _out << texMap[_be.texcoord(vhandles[j])]; } // write vertex normal index