diff --git a/experimental/tinyobj_loader_opt.h b/experimental/tinyobj_loader_opt.h index 003803c..86c1b6c 100644 --- a/experimental/tinyobj_loader_opt.h +++ b/experimental/tinyobj_loader_opt.h @@ -1685,7 +1685,8 @@ bool parseObj(attrib_t *attrib, std::vector *shapes, } } if (commands[t][i].type == COMMAND_F) { - face_count++; + // Consider generation of multiple faces per `f` line by triangulation + face_count += commands[t][i].f_num_verts.size(); } } }