Commit 484d6529 authored by Jan Möbius's avatar Jan Möbius
Browse files

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

git-svn-id: fdac6126-5c0c-442c-9429-916003d36597
parent 91b0ac9d
......@@ -572,14 +572,10 @@ read(std::istream& _in, BaseImporter& _bi, Options& _opt)
component = 0;
fh = _bi.add_face(faceVertices);
//clear vertices handles, so no face will be added twice
if (fh.is_valid())
fh = _bi.add_face(faceVertices);
size_t n_faces = _bi.n_faces();
if (!vhandles.empty() && fh.is_valid() )
Markdown is supported
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