diff --git a/src/OpenMesh/Core/IO/writer/OBJWriter.cc b/src/OpenMesh/Core/IO/writer/OBJWriter.cc index 805e48a5..8150af9d 100644 --- a/src/OpenMesh/Core/IO/writer/OBJWriter.cc +++ b/src/OpenMesh/Core/IO/writer/OBJWriter.cc @@ -270,6 +270,10 @@ write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _prec int lastMat = -1; + // we do not want to write seperators if we only write vertex indices + bool onlyVertices = !_opt.check(Options::VertexTexCoord) + && !_opt.check(Options::VertexNormal); + // faces (indices starting at 1 not 0) for (i=0, nF=_be.n_faces(); i