Fixed broken indices for some cases of OBJ parsing by using two passes

This commit is contained in:
Max Limper
2016-08-30 17:25:48 +02:00
parent ffba476751
commit f53429fdeb
2 changed files with 151 additions and 84 deletions

View File

@@ -170,8 +170,17 @@ private:
bool read_material( std::fstream& _in );
private:
bool read_vertices(std::istream& _in, BaseImporter& _bi, Options& _opt,
std::vector<Vec3f> & normals,
std::vector<Vec3f> & colors,
std::vector<Vec3f> & texcoords3d,
std::vector<Vec2f> & texcoords,
std::vector<VertexHandle> & vertexHandles,
Options & fileOptions);
std::string path_;
};