commit 4c3c364acb9c7e686efc371097645af27d2778c5
parent 22f421cf6a95332fdf61e5d2fcfc0729f9375f87
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Fri, 22 Feb 2019 14:27:08 +0100
Change a float printf
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/stardis-app.h b/src/stardis-app.h
@@ -70,7 +70,7 @@ print_trg_as_obj
const struct triangle* trg)
{
ASSERT(stream && vertices && trg);
- fprintf(stream, "v %.8e %.8e %.8e\nv %.8e %.8e %.8e\nv %.8e %.8e %.8e\nf 1 2 3\n",
+ fprintf(stream, "v %.8f %.8f %.8f\nv %.8f %.8f %.8f\nv %.8f %.8f %.8f\nf 1 2 3\n",
SPLIT3(vertices[trg->indices.data[0]].xyz),
SPLIT3(vertices[trg->indices.data[1]].xyz),
SPLIT3(vertices[trg->indices.data[2]].xyz));