Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2020-12-13 21:41:08 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2020-12-13 22:06:01 +0300
commit9c0df8e27533657f49919e45d46c85c847048d8f (patch)
tree8437042e03cc707ad6b9f0af1ef9498a5c4a9cd8 /release/scripts/startup/bl_ui/space_userpref.py
parentc6075118d5d35657f9adcd6867b9655962e7386c (diff)
Fix weird Swing+Twist decomposition with noncanonical quaternions.
It turns out that after the fix to T83196 (rB814b2787cadd) the matrix to quaternion conversion can produce noncanonical results in large areas of the rotation space, when previously this was limited to way smaller areas. This in turn causes Swing+Twist math to produce angles beyond 180 degrees, e.g. outputting a -120..240 range. This fixes both issues, ensuring that conversion outputs a canonical result, and decomposition canonifies its input. This was reported in chat by @jpbouza.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_userpref.py')
0 files changed, 0 insertions, 0 deletions