diff options
author | Campbell Barton <campbell@blender.org> | 2022-08-25 07:05:31 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-08-25 07:32:34 +0300 |
commit | be40f31d0392e356d065fb6e1cd1ca8a3e66f048 (patch) | |
tree | c3fcb0408ef2831fc620a16be9c860a347989426 | |
parent | a7650c6206908a8865d6140a310809ec5ab0c770 (diff) |
Keyframing: replace mat3_to_quat_is_ok with mat4_to_quat
Added [0] which notes in most cases results are the same but in some
cases the result seems better. While true at the time of writing since
then mat3_to_quat has been improved and used for nearly all matrix
to quaternion conversion.
0: 876cfc837e2f065fa370940ca578983d84c48a11
-rw-r--r-- | source/blender/editors/animation/keyframing.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index 12f83343299..acf53541843 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -1081,10 +1081,7 @@ static float *visualkey_get_values( } if (strstr(identifier, "rotation_quaternion")) { - float mat3[3][3]; - - copy_m3_m4(mat3, tmat); - mat3_to_quat_is_ok(buffer, mat3); + mat4_to_quat(buffer, tmat); *r_count = 4; return buffer; |