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:
@@ -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() )
|
||||||
|
|||||||
Reference in New Issue
Block a user