fix:T50079 collada matrix and blender matrix are transposed. This was not regarded by the animation importer, so it was creating very odd results

This commit is contained in:
Gaia Clary
2018-02-16 16:58:20 +01:00
parent e1a686e444
commit 5bc2c17161
2 changed files with 2 additions and 1 deletions

View File

@@ -817,6 +817,7 @@ void AnimationImporter::apply_matrix_curves(Object *ob, std::vector<FCurve *>& a
}
float rot[4], loc[3], scale[3];
transpose_m4(mat);
bc_rotate_from_reference_quat(rot, qref, mat);
copy_qt_qt(qref, rot);

View File

@@ -403,7 +403,7 @@ void bc_rotate_from_reference_quat(float quat_to[4], float quat_from[4], float m
mat4_to_quat(qd, matd);
mul_qt_qtqt(quat_to, quat_from, qd); // rot is the final rotation corresponding to mat_to
mul_qt_qtqt(quat_to, qd, quat_from); // rot is the final rotation corresponding to mat_to
}
void bc_triangulate_mesh(Mesh *me)