reverting back to 16 digit precision export

having to import 17 digit floats likely leads to issues in many other apps
This commit is contained in:
Chris Russ
2016-07-06 15:33:51 +10:00
parent 10f22779f4
commit a5b3ce9a3c
6 changed files with 9 additions and 9 deletions

View File

@@ -94,7 +94,7 @@ STLExporter :: STLExporter(const char* _filename, const aiScene* pScene, bool bi
// make sure that all formatting happens using the standard, C locale and not the user's current locale
const std::locale& l = std::locale("C");
mOutput.imbue(l);
mOutput.precision(17);
mOutput.precision(16);
if (binary) {
char buf[80] = {0} ;
buf[0] = 'A'; buf[1] = 's'; buf[2] = 's'; buf[3] = 'i'; buf[4] = 'm'; buf[5] = 'p';