diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2017-04-03 11:48:00 +0300 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2017-04-03 11:48:00 +0300 |
commit | 368b74315a58f66187b924cbc646abd05ce6a2b7 (patch) | |
tree | ff14725d78e3e9ca13cd4255b48ae2ad218d0f71 /source/blender/collada/ControllerExporter.cpp | |
parent | f65d6ea95458ad53715f09165d37f2486e4750be (diff) |
Collada - add flag to limit precision of exported data, mainly to simplify debugging
Diffstat (limited to 'source/blender/collada/ControllerExporter.cpp')
-rw-r--r-- | source/blender/collada/ControllerExporter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/collada/ControllerExporter.cpp b/source/blender/collada/ControllerExporter.cpp index 5444c9dfa6b..1c2642e8313 100644 --- a/source/blender/collada/ControllerExporter.cpp +++ b/source/blender/collada/ControllerExporter.cpp @@ -533,7 +533,8 @@ std::string ControllerExporter::add_inv_bind_mats_source(Object *ob_arm, ListBas invert_m4_m4(mat, world); converter.mat4_to_dae(inv_bind_mat, mat); - bc_sanitize_mat(inv_bind_mat, 6); // XXX: Make this optional ? + if (this->export_settings->limit_precision) + bc_sanitize_mat(inv_bind_mat, 6); source.appendValues(inv_bind_mat); } } |