mirror of https://github.com/bjornbytes/lovr.git
Compare commits
2 Commits
ecbd331552
...
3dd641c02d
Author | SHA1 | Date |
---|---|---|
bjorn | 3dd641c02d | |
bjorn | 01a0df37cc |
|
@ -197,7 +197,7 @@ ModelData* lovrModelDataInitObj(ModelData* model, Blob* source, ModelDataIO* io)
|
|||
|
||||
// Triangulate faces (triangle fan)
|
||||
if (i >= 3) {
|
||||
arr_push(&indexBlob, indexBlob.data[indexBlob.length - i]);
|
||||
arr_push(&indexBlob, indexBlob.data[indexBlob.length - (3 * (i - 2))]);
|
||||
arr_push(&indexBlob, indexBlob.data[indexBlob.length - 2]);
|
||||
group->count += 2;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue