diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2018-02-16 18:53:16 +0300 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2018-02-16 18:55:20 +0300 |
commit | e1a686e44448e8345d45041631fda84d4ee0d2fa (patch) | |
tree | 21620c55a009266b71cd8c104d5ff26d3c714b05 /source/blender/collada/AnimationExporter.cpp | |
parent | 7fdf720fb164e448703c7d9f6103a3b59178189d (diff) |
fix: limit precision also for animation matrixes if the limit option is set (gives nicer output for inspection)
Diffstat (limited to 'source/blender/collada/AnimationExporter.cpp')
-rw-r--r-- | source/blender/collada/AnimationExporter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/collada/AnimationExporter.cpp b/source/blender/collada/AnimationExporter.cpp index d4f434d56fd..bd5cb05a1fa 100644 --- a/source/blender/collada/AnimationExporter.cpp +++ b/source/blender/collada/AnimationExporter.cpp @@ -988,6 +988,9 @@ std::string AnimationExporter::create_4x4_source(std::vector<float> &frames, Obj double outmat[4][4]; converter.mat4_to_dae_double(outmat, mat); + if (this->export_settings->limit_precision) + bc_sanitize_mat(outmat, 6); + source.appendValues(outmat); j++; |