Merge pull request #31 from cadenji/add-index_count

Add index_count member to fastObjMesh struct
This commit is contained in:
Richard Knight 2022-01-29 16:42:41 +00:00 committed by GitHub
commit 85778da5fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,6 +129,7 @@ typedef struct
unsigned int* face_materials;
/* Index data: one element for each face vertex */
unsigned int index_count;
fastObjIndex* indices;
/* Materials */
@ -1508,6 +1509,7 @@ fastObjMesh* fast_obj_read_with_callbacks(const char* path, const fastObjCallbac
m->texcoord_count = array_size(m->texcoords) / 2;
m->normal_count = array_size(m->normals) / 3;
m->face_count = array_size(m->face_vertices);
m->index_count = array_size(m->indices);
m->material_count = array_size(m->materials);
m->object_count = array_size(m->objects);
m->group_count = array_size(m->groups);