diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2019-05-28 10:23:05 +0300 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2019-06-03 00:00:56 +0300 |
commit | 122b9478c66e13fa3c14da606cfa92528acd0b87 (patch) | |
tree | d2105c15b7b67aac115b3e1271dbe8996433d1ec /source/blender/collada/collada_utils.cpp | |
parent | 70bc179c45414bd426af49c883fcab1e3bebabf8 (diff) |
refactor collada: replace bc_sanitize_mat() by static class method in BCMatrix
Diffstat (limited to 'source/blender/collada/collada_utils.cpp')
-rw-r--r-- | source/blender/collada/collada_utils.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/source/blender/collada/collada_utils.cpp b/source/blender/collada/collada_utils.cpp index 9e480e7faf0..e42ceda7da8 100644 --- a/source/blender/collada/collada_utils.cpp +++ b/source/blender/collada/collada_utils.cpp @@ -1085,20 +1085,6 @@ void bc_create_restpose_mat(BCExportSettings &export_settings, loc_eulO_size_to_mat4(to_mat, loc, rot, scale, 6); } -/* - * Make 4*4 matrices better readable - */ -void bc_sanitize_mat(float mat[4][4], int precision) -{ - for (int i = 0; i < 4; i++) { - for (int j = 0; j < 4; j++) { - double val = (double)mat[i][j]; - val = double_round(val, precision); - mat[i][j] = (float)val; - } - } -} - void bc_sanitize_v3(float v[3], int precision) { for (int i = 0; i < 3; i++) { @@ -1108,15 +1094,6 @@ void bc_sanitize_v3(float v[3], int 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); - } - } -} - void bc_sanitize_v3(double v[3], int precision) { for (int i = 0; i < 3; i++) { |