setting default export precision to 17 for all exporters

This commit is contained in:
Chris Russ
2016-07-06 14:49:14 +10:00
parent 19769eef8b
commit 10f22779f4
6 changed files with 14 additions and 7 deletions

View File

@@ -99,6 +99,7 @@ PlyExporter::PlyExporter(const char* _filename, const aiScene* pScene, bool bina
// 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);
unsigned int faces = 0u, vertices = 0u, components = 0u;
for (unsigned int i = 0; i < pScene->mNumMeshes; ++i) {