Fixed typo in assert

This commit is contained in:
Alessandro Ranellucci 2017-03-06 16:50:34 +01:00
parent 4d13c67baa
commit ca73765ad7

View File

@ -102,7 +102,7 @@ OBJ::read(std::string input_file, Model* model)
std::vector<Point3> facets;
// Read vertices.
assert((shape->mesh.vertices.size() % 3) == 0);
assert((attrib.vertices.size() % 3) == 0);
for (size_t v = 0; v < attrib.vertices.size(); v += 3) {
points.push_back(Pointf3(
attrib.vertices[v],