[Bf-blender-cvs] [3c76751a683] blender2.8: fix: Collada exporter: take care of parent inverse for exports of Armatures with child objects
Gaia Clary
noreply at git.blender.org
Mon Nov 26 23:15:14 CET 2018
Commit: 3c76751a6838c740142c9b66983c84ac581d79ac
Author: Gaia Clary
Date: Mon Nov 26 23:14:25 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB3c76751a6838c740142c9b66983c84ac581d79ac
fix: Collada exporter: take care of parent inverse for exports of Armatures with child objects
===================================================================
M source/blender/collada/ControllerExporter.cpp
===================================================================
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);
}
More information about the Bf-blender-cvs
mailing list