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-11-30 19:31:21 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2020-11-30 21:46:45 +0300
commit814b2787caddf5bd81477bd7b5dea8c45c402a72 (patch)
treeb936548e5f84016c6cff1feab96dfbeb7c42dce0 /source/blender/blenlib/intern/astar.c
parent6022103264cf2e23ad884fce6b5dfadf88b24e05 (diff)
Fix T83196: bad matrix to quaternion precision near 180 degrees rotation.
Adjust the threshold for switching from the base case to trace > 0, based on very similar example code from www.euclideanspace.com to avoid float precision issues when trace is close to -1. Also, remove conversions to and from double, because using double here doesn't really have benefit, especially with the new threshold. Finally, add quaternion-matrix-quaternion round trip tests with full coverage for all 4 branches. Differential Revision: https://developer.blender.org/D9675
Diffstat (limited to 'source/blender/blenlib/intern/astar.c')
0 files changed, 0 insertions, 0 deletions