close stl files with endsolid

refs #1713

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@900 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Matthias Möller
2013-08-07 10:15:53 +00:00
parent fe2e047728
commit 49125a05d7

View File

@@ -188,7 +188,7 @@ write_stla(const std::string& _filename, BaseExporter& _be, Options /* _opt */)
fprintf(out, "\nendloop\nendfacet\n");
}
fprintf(out, "endsolid\n");
fclose(out);
@@ -243,6 +243,8 @@ write_stla(std::ostream& _out, BaseExporter& _be, Options /* _opt */, std::strea
_out << "\nendloop\nendfacet\n";
}
_out << "endsolid\n";
return true;
}