From a41069b9544913fa1a4ca7e1ba929ec599cbe9ba Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Thu, 3 Jul 2003 12:31:19 +0000 Subject: [PATCH] - second change in vrml file writing. Thanks to testing of a user (don't have good vrml viewer here) I could make the UV coords in the right order. seems to look good now, but will keep in touch with the tester for verification --- source/blender/blenkernel/intern/exotic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/blenkernel/intern/exotic.c b/source/blender/blenkernel/intern/exotic.c index c1575609fa5..da4ac23dc15 100644 --- a/source/blender/blenkernel/intern/exotic.c +++ b/source/blender/blenkernel/intern/exotic.c @@ -2447,9 +2447,9 @@ static void write_mesh_vrml(FILE *fp, Mesh *me) while(a--) { if(mface->mat_nr==b) { fprintf(fp, "\t\t\t\t %f %f,\n", tface->uv[0][0], tface->uv[0][1]); - fprintf(fp, "\t\t\t\t %f %f,\n", tface->uv[3][0], tface->uv[3][1]); + fprintf(fp, "\t\t\t\t %f %f,\n", tface->uv[1][0], tface->uv[1][1]); if(mface->v3) fprintf(fp, "\t\t\t\t %f %f,\n", tface->uv[2][0], tface->uv[2][1]); - if(mface->v4) fprintf(fp, "\t\t\t\t %f %f,\n", tface->uv[1][0], tface->uv[1][1]); + if(mface->v4) fprintf(fp, "\t\t\t\t %f %f,\n", tface->uv[3][0], tface->uv[3][1]); } mface++; tface++;