diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-06-21 20:24:23 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-06-21 20:31:45 +0300 |
commit | b665ad8621a0db265fd666542d26aed463025db1 (patch) | |
tree | 163a137c4e79735ca84a0cf3cfb8fe522ddc27e9 /source/blender/blenlib/BLI_math_rotation.h | |
parent | 41af27c582ec21e65ff3f835754c7b0bcf6d3be7 (diff) |
Fix T89291: Objects with rotation deltas don't rotate in correct axes
Quaternion correction was not implemented and Euler values were being
incorrectly combined.
Diffstat (limited to 'source/blender/blenlib/BLI_math_rotation.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_rotation.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_rotation.h b/source/blender/blenlib/BLI_math_rotation.h index fe995b2e46e..ef10d02f10f 100644 --- a/source/blender/blenlib/BLI_math_rotation.h +++ b/source/blender/blenlib/BLI_math_rotation.h @@ -164,6 +164,9 @@ void compatible_eul(float eul[3], const float old[3]); void rotate_eul(float eul[3], const char axis, const float angle); +void add_eul_euleul(float r_eul[3], float a[3], float b[3], const short order); +void sub_eul_euleul(float r_eul[3], float a[3], float b[3], const short order); + /************************** Arbitrary Order Eulers ***************************/ /* warning: must match the eRotationModes in DNA_action_types.h |