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: 876cfc837e
This commit is contained in:
Campbell Barton 2022-08-25 14:05:31 +10:00
parent a7650c6206
commit be40f31d03
1 changed files with 1 additions and 4 deletions

View File

@ -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;