- fixed a bug with OBJReader that prevented the material color to be loaded correctly

- added a corresponding unittest

Thanks for the patch by Karthik Nathan

closes #1473

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@823 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Isaak Lim
2013-04-25 11:03:53 +00:00
parent 3d72b7dbc1
commit 83722b8e5f
4 changed files with 48 additions and 2 deletions

View File

@@ -574,9 +574,10 @@ read(std::istream& _in, BaseImporter& _bi, Options& _opt)
}
fh = _bi.add_face(faceVertices);
// note that add_face can possibly triangulate the faces, which is why we have to
// store the current number of faces first
size_t n_faces = _bi.n_faces();
fh = _bi.add_face(faceVertices);
if (!vhandles.empty() && fh.is_valid() )
_bi.add_face_texcoords(fh, vhandles[0], face_texcoords);