- Use Fixed as stream option in OBJ writer to avoid problems with other programs reading scientific notation

closes #60
This commit is contained in:
Jan Möbius
2018-12-10 10:32:10 +01:00
parent a7072d3d6a
commit 0ee735dba2
2 changed files with 5 additions and 0 deletions

View File

@@ -97,8 +97,12 @@ write(const std::string& _filename, BaseExporter& _be, Options _opt, std::stream
return false;
}
// Set precision on output stream. The default is set via IOManager and passed through to all writers.
out.precision(_precision);
// Set fixed output to avoid problems with programs not reading scientific notation correctly
out << std::fixed;
{
#if defined(WIN32)
std::string::size_type dot = _filename.find_last_of("\\/");