Fixed bug in OBJ reader, where some faces could be missing

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@777 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2012-12-11 08:44:02 +00:00
parent 91b0ac9df0
commit 484d6529f8

View File

@@ -572,14 +572,10 @@ read(std::istream& _in, BaseImporter& _bi, Options& _opt)
component = 0; component = 0;
nV++; nV++;
fh = _bi.add_face(faceVertices);
//clear vertices handles, so no face will be added twice
if (fh.is_valid())
faceVertices.clear();
} }
fh = _bi.add_face(faceVertices);
size_t n_faces = _bi.n_faces(); size_t n_faces = _bi.n_faces();
if (!vhandles.empty() && fh.is_valid() ) if (!vhandles.empty() && fh.is_valid() )