Skip to content

Commit c772dca

Browse files
Copilotsyoyo
andcommitted
Fix loop condition in MWT emit per review feedback
Co-authored-by: syoyo <18676+syoyo@users.noreply.github.com>
1 parent d174bce commit c772dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tiny_obj_loader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2688,7 +2688,7 @@ static bool exportGroupsToShape(shape_t *shape, const PrimGroup &prim_group,
26882688
}
26892689

26902690
// Emit the best triangulation
2691-
for (size_t k = 0; k + 2 < best_triangles.size(); k += 3) {
2691+
for (size_t k = 0; k + 3 <= best_triangles.size(); k += 3) {
26922692
size_t fi0 = best_triangles[k + 0];
26932693
size_t fi1 = best_triangles[k + 1];
26942694
size_t fi2 = best_triangles[k + 2];

0 commit comments

Comments
 (0)