summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-10-31 20:20:11 +0100
committerRay <[email protected]>2023-10-31 20:20:11 +0100
commit15142a30f5e371b4a8246d9a8671ae260bb4c78f (patch)
tree0b1a9050ae36027872f18bb6394c8e3bae7d4135 /src
parent43f36b9b05d99138307318e29ff80443fc1b4249 (diff)
downloadraylib-15142a30f5e371b4a8246d9a8671ae260bb4c78f.tar.gz
raylib-15142a30f5e371b4a8246d9a8671ae260bb4c78f.zip
Update rmodels.c
Diffstat (limited to 'src')
-rw-r--r--src/rmodels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rmodels.c b/src/rmodels.c
index 0fc305dd..3cae43d1 100644
--- a/src/rmodels.c
+++ b/src/rmodels.c
@@ -3984,7 +3984,7 @@ static Model LoadOBJ(const char *fileName)
model.meshMaterial[i] = 0; // By default, assign material 0 to each mesh
// Process all mesh faces
- for (unsigned int face = 0, f = meshes[i].face_offset, v = 0, vt = 0, vn = 0; face < tris; face++, f++, v += 3, vt += 2, vn += 3)
+ for (unsigned int face = 0, f = meshes[i].face_offset, v = 0, vt = 0, vn = 0; face < tris; face++, f++, v += 3, vt += 3, vn += 3)
{
// Get indices for the face
tinyobj_vertex_index_t idx0 = attrib.faces[f*3 + 0];