From f8ec6b8654962cd2fc77b9941f35c8127d37fc90 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 26 Oct 2010 12:48:07 +0000 Subject: move matrix decomposition out of object.c into BLI_math_matrix function: mat4_to_loc_rot_size(), use this now for pchan_apply_mat4() to support negative scale, visual keying now uses compatible eulers. also added access to this in python's mathutils.Matrix() loc, quat, scale = matrix.decompose() --- source/blender/editors/armature/editarmature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/armature/editarmature.c b/source/blender/editors/armature/editarmature.c index 28165c0e018..fd747cc32aa 100644 --- a/source/blender/editors/armature/editarmature.c +++ b/source/blender/editors/armature/editarmature.c @@ -681,7 +681,7 @@ static int pose_visual_transform_apply_exec (bContext *C, wmOperator *UNUSED(op) invert_m4_m4(imat, pchan->pose_mat); mul_m4_m4m4(delta_mat, mat, imat); - pchan_apply_mat4(pchan, delta_mat); + pchan_apply_mat4(pchan, delta_mat, TRUE); where_is_pose_bone(scene, ob, pchan, CFRA, 1); } -- cgit v1.2.3