From 665c129488a7508673757547e2de32301758c1ca Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Wed, 9 Apr 2014 09:45:38 -0700 Subject: [PATCH] Fix small bug in obj_writer.cc (one too many "%f"s in format string). --- examples/obj_sticher/obj_writer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/obj_sticher/obj_writer.cc b/examples/obj_sticher/obj_writer.cc index aa9b244..1cad9de 100644 --- a/examples/obj_sticher/obj_writer.cc +++ b/examples/obj_sticher/obj_writer.cc @@ -104,7 +104,7 @@ bool WriteObj(const std::string& filename, std::vector shapes) for (size_t k = 0; k < shapes[i].mesh.indices.size() / 3; k++) { for (int j = 0; j < 3; j++) { int idx = shapes[i].mesh.indices[3*k+j]; - fprintf(fp, "vt %f %f %f\n", + fprintf(fp, "vt %f %f\n", shapes[i].mesh.texcoords[2*idx+0], shapes[i].mesh.texcoords[2*idx+1]); }