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-11-27 01:14:25 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2018-11-27 01:14:46 +0300
commit3c76751a6838c740142c9b66983c84ac581d79ac (patch)
tree74fb8f8d62edb1171ff41aa37388d09db0bea488 /source/blender/collada/ControllerExporter.cpp
parentc99f18a7871f5bfe9454138d53aaccc575764d52 (diff)
fix: Collada exporter: take care of parent inverse for exports of Armatures with child objects
Diffstat (limited to 'source/blender/collada/ControllerExporter.cpp')
-rw-r--r--source/blender/collada/ControllerExporter.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/collada/ControllerExporter.cpp b/source/blender/collada/ControllerExporter.cpp
index f944855dab2..5ec199f086b 100644
--- a/source/blender/collada/ControllerExporter.cpp
+++ b/source/blender/collada/ControllerExporter.cpp
@@ -421,7 +421,13 @@ void ControllerExporter::add_joints_element(ListBase *defbase,
void ControllerExporter::add_bind_shape_mat(Object *ob)
{
double bind_mat[4][4];
- UnitConverter::mat4_to_dae_double(bind_mat, ob->obmat);
+ float f_obmat[4][4];
+ BKE_object_matrix_local_get(ob, f_obmat);
+
+ //UnitConverter::mat4_to_dae_double(bind_mat, ob->obmat);
+ UnitConverter::mat4_to_dae_double(bind_mat, f_obmat);
+ if (this->export_settings->limit_precision)
+ bc_sanitize_mat(bind_mat, LIMITTED_PRECISION);
addBindShapeTransform(bind_mat);
}