Commit 827f34f4 authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'fixOBJWriterMissingTexCoords' into 'master'

applied fix for bad or missing vertex tex coords

See merge request !145
parents e4d43ee6 1b236885
......@@ -53,6 +53,7 @@
<li>ImporterT: Return a valid FaceHandle when adding non-manifold faces.</li>
<li>BaseExporter: Added accessor functions for HalfEdgeHandles and faceTexCoords to base exporter and exporter template.</li>
<li>OBJ Writer: Added functionality to store FaceTexCoords to objwriter</li>
<li>OBJ Writer: Applied fix for bad or missing vertex tex coords (Thanks to Gero Müller for the patch)</li>>
<li>OBJ Loader: range check for vertex colors and normals in OBJ loader</li>
<li>OBJ Loader: fixed handling of negative indices in OBJ loader</li>
<li>OM Writer: Fixed OMWriter when no faces are available (Thanks to Jamie Kydd for the patch)</li>
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment