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

@@ -104,7 +104,7 @@ XFileExporter::XFileExporter(const aiScene* pScene, IOSystem* pIOSystem, const s
{
// make sure that all formatting happens using the standard, C locale and not the user's current locale
mOutput.imbue( std::locale("C") );
mOutput.precision(17);
mOutput.precision(16);
// start writing
WriteFile();
@@ -125,7 +125,7 @@ void XFileExporter::WriteFile()
{
// note, that all realnumber values must be comma separated in x files
mOutput.setf(std::ios::fixed);
mOutput.precision(17); // precission for double
mOutput.precision(16); // precission for double
// entry of writing the file
WriteHeader();