Skip to content

Commit 95640b5

Browse files
Correct winding order
1 parent c429b16 commit 95640b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ struct model *model_load_from_stl(const char *fname)
570570
// For every 3 vertices create a face
571571
for (int i = 0; i < model->vertex_count; i += 3)
572572
{
573-
model_add_face(model, i, i+1, i+2, current_material);
573+
model_add_face(model, i, i+2, i+1, current_material);
574574
}
575575

576576
fclose(fp);

0 commit comments

Comments
 (0)