Blender Git Commit Log

Git Commits -> Revision dc4ef17

Revision dc4ef17 by Martin Poirier (master)
November 13, 2008, 22:35 (GMT)
==Armature==

Fix the roll mess in transform. Since roll is based on an automatically calculated up axis, transforming bones would mess up bone orientation. This code automatically adjusts the roll value to keep bone orientation as consistant as possible. That works all around in transform for all transformations.

Doesn't work with x-axis mirror though as that doesn't use transform elements (fixing it would be nice for later)

Most interesting is that it works with the mirror tool (obviously), so you don't have to fix all the rolls after mirroring one side of an armature.

It could be made an option if someone presents a good enough point for that, but I can't see why you'd want the previous mess instead.

NB: this also ports a utility fonction from etch-a-ton to set bone roll from an up axis.

Commit Details:

Full Hash: dc4ef17eea1a0dba1e9b9e99970005a394b1d37d
SVN Revision: 17446
Parent Commit: e76f7e7
Lines Changed: +68, -4

5 Modified Paths:

/source/blender/include/BIF_editarmature.h (+2, -0) (Diff)
/source/blender/include/transform.h (+1, -1) (Diff)
/source/blender/src/editarmature.c (+25, -0) (Diff)
/source/blender/src/transform_conversions.c (+15, -2) (Diff)
/source/blender/src/transform_generics.c (+25, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021