diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-05-21 17:22:31 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-05-21 17:22:31 +0400 |
commit | ebbeb082d1bef78d1fa162822db2af44468e97cd (patch) | |
tree | 2f31fdc6ed9774e1969cc8ccf336255246afaf51 /source/blender/makesrna/intern/rna_render.c | |
parent | d203edfc9384f8632fce122dc8313a4745799a86 (diff) |
Fix T40271: recalculation of the bone roll does not work correctly.
Check that up_axis is not aligned with bone was wrong in at least two aspects
(not working against negative alignement case, and since ages it seems,
using Z axis when bones are along Y axis...).
Also optimized a bit here, better to have a normalized version of vec_roll_to_mat3(),
since it needs normalized vector anyway, and we have to normalize it for the tests
before calling it anyway (so now, we only do that twice in Transform code, instead
of three times).
And we can perform aling test *before* calling vec_roll_to_mat3!
Diffstat (limited to 'source/blender/makesrna/intern/rna_render.c')
0 files changed, 0 insertions, 0 deletions