Skip to content

Commit

Permalink
fix index multiplier when saving tex coords
Browse files Browse the repository at this point in the history
  • Loading branch information
chitalu committed Feb 1, 2024
1 parent ab44072 commit 2972afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ void mioWriteOBJ(
for(unsigned int i = 0; i < (unsigned int)numTexcoords; ++i)
{

const double s = pTexCoords[i * 3u + 0u];
const double t = pTexCoords[i * 3u + 1u];
const double s = pTexCoords[i * 2u + 0u];
const double t = pTexCoords[i * 2u + 1u];

fprintf(file, "vt %f %f\n", s, t);
}
Expand Down

0 comments on commit 2972afc

Please sign in to comment.