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/collada_utils.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/collada_utils.cpp')
-rw-r--r-- | source/blender/collada/collada_utils.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/collada/collada_utils.cpp b/source/blender/collada/collada_utils.cpp index c13757fa2a4..35bc643d3c7 100644 --- a/source/blender/collada/collada_utils.cpp +++ b/source/blender/collada/collada_utils.cpp @@ -864,6 +864,13 @@ void bc_sanitize_mat(float mat[4][4], int precision) mat[i][j] = double_round(mat[i][j], precision); } +void bc_sanitize_mat(double mat[4][4], int precision) +{ + for (int i = 0; i < 4; i++) + for (int j = 0; j < 4; j++) + mat[i][j] = double_round(mat[i][j], precision); +} + /* * Returns name of Active UV Layer or empty String if no active UV Layer defined. * Assuming the Object is of type MESH |