Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaia Clary <gaia.clary@machinimatrix.org>2018-02-27 19:53:53 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2018-02-27 19:53:53 +0300
commit1a65168c4202a76cfacaafb6c1175b56d82d7123 (patch)
treee62fb26b5e5f2333fc3a20e1318e7fcb4d221b43 /source/blender/collada/AnimationExporter.cpp
parent925f2280e6b65f7bbdaa50439b983e9ef853ff1a (diff)
parent05b5958a7a3bc112695bb9f63728260d595a51f4 (diff)
merge Collada changtes from master
Diffstat (limited to 'source/blender/collada/AnimationExporter.cpp')
-rw-r--r--source/blender/collada/AnimationExporter.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/source/blender/collada/AnimationExporter.cpp b/source/blender/collada/AnimationExporter.cpp
index 684575bfc08..1196b3dfbe8 100644
--- a/source/blender/collada/AnimationExporter.cpp
+++ b/source/blender/collada/AnimationExporter.cpp
@@ -214,19 +214,15 @@ void AnimationExporter::export_sampled_matrix_animation(Object *ob, std::vector<
for (std::vector<float>::iterator ctime = ctimes.begin(); ctime != ctimes.end(); ++ctime) {
float fmat[4][4];
- float outmat[4][4];
bc_update_scene(eval_ctx, scene, *ctime);
BKE_object_matrix_local_get(ob, fmat);
-
- converter.mat4_to_dae(outmat, fmat);
-
if (this->export_settings->limit_precision)
- bc_sanitize_mat(outmat, 6);
+ bc_sanitize_mat(fmat, 6);
for (int i = 0; i < 4; i++)
for (int j = 0; j < 4; j++)
- values.push_back(outmat[j][i]);
+ values.push_back(fmat[i][j]);
}
std::string ob_name = id_name(ob);
@@ -252,7 +248,6 @@ void AnimationExporter::export_sampled_transrotloc_animation(Object *ob, std::ve
float feul[3];
bc_update_scene(eval_ctx, scene, *ctime);
-
BKE_object_matrix_local_get(ob, fmat);
mat4_decompose(floc, fquat, fsize, fmat);
quat_to_eul(feul, fquat);