bugfix [#24907] bone roll z up broken and python script showing correct method to...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 25 Nov 2010 19:49:07 +0000 (19:49 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 25 Nov 2010 19:49:07 +0000 (19:49 +0000)
commit95d8cfc25df30adbb18437b8de0bc840797574ee
tree0a7ba3821a821dde9682b2a431a048ba19cd699e
parentd2a2cab975d1c4bcd6a047f9f983993c2993a8ad
bugfix [#24907] bone roll z up broken and python script showing correct method to roll bones
from Josh Wedlake (joshwedlake), who provided a reference script used to apply changes in ED_rollBoneToVector().

- Obvious bug fixed where Z-Up didnt work right.
- More align axis options to Recalculate Roll operator: X/Y/Z/View Axis & Negate.
- Axis Only option, ignore the axis direction, use shortest rotation to align bones.

ED_rollBoneToVector() changes:
- would give bad roll when the axis wasn't normalized or perpendicular to the bone.
  some callers accounted for this but not all.
- option to align to the axis but not the direction.
source/blender/blenlib/BLI_math_vector.h
source/blender/blenlib/intern/math_vector_inline.c
source/blender/editors/armature/editarmature.c
source/blender/editors/armature/editarmature_generate.c
source/blender/editors/armature/editarmature_retarget.c
source/blender/editors/include/ED_armature.h
source/blender/editors/transform/transform_generics.c
source/blender/makesrna/intern/rna_armature_api.c