diff --git a/Doc/changelog.docu b/Doc/changelog.docu index 239174bc..5ec664d7 100644 --- a/Doc/changelog.docu +++ b/Doc/changelog.docu @@ -53,6 +53,7 @@
  • ImporterT: Return a valid FaceHandle when adding non-manifold faces.
  • BaseExporter: Added accessor functions for HalfEdgeHandles and faceTexCoords to base exporter and exporter template.
  • OBJ Writer: Added functionality to store FaceTexCoords to objwriter
  • +
  • OBJ Writer: Applied fix for bad or missing vertex tex coords (Thanks to Gero Müller for the patch)
  • >
  • OBJ Loader: range check for vertex colors and normals in OBJ loader
  • OBJ Loader: fixed handling of negative indices in OBJ loader
  • OM Writer: Fixed OMWriter when no faces are available (Thanks to Jamie Kydd for the patch)
  • 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