瀏覽代碼

Update rmodels.c

pull/3497/head
Ray 1 年之前
父節點
當前提交
15142a30f5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/rmodels.c

+ 1
- 1
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];

Loading…
取消
儲存