diff --git a/src/slic3r/GUI/3DScene.cpp b/src/slic3r/GUI/3DScene.cpp index a0033b267..35dbd4cea 100644 --- a/src/slic3r/GUI/3DScene.cpp +++ b/src/slic3r/GUI/3DScene.cpp @@ -1130,13 +1130,13 @@ void GLVolumeCollection::export_toolpaths_to_obj(const char* filename) const fprintf(fp, "\n# vertices volume %d\n", volumes_count); for (const Vector& v : dst_vertices) { - fprintf(fp, "v %f %f %f\n", unscale(v.vector[0]), unscale(v.vector[1]), unscale(v.vector[2])); + fprintf(fp, "v %g %g %g\n", unscale(v.vector[0]), unscale(v.vector[1]), unscale(v.vector[2])); } fprintf(fp, "\n# normals volume %d\n", volumes_count); for (const Vector& n : dst_normals) { - fprintf(fp, "vn %f %f %f\n", unscale(n.vector[0]), unscale(n.vector[1]), unscale(n.vector[2])); + fprintf(fp, "vn %g %g %g\n", unscale(n.vector[0]), unscale(n.vector[1]), unscale(n.vector[2])); } Color color;