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.
This commit is contained in:
2010-11-25 19:49:07 +00:00
parent d2a2cab975
commit 95d8cfc25d
8 changed files with 112 additions and 148 deletions

View File

@@ -747,7 +747,7 @@ void recalcData(TransInfo *t)
mul_m3_v3(t->mat, up_axis);
}
ebo->roll = ED_rollBoneToVector(ebo, up_axis);
ebo->roll = ED_rollBoneToVector(ebo, up_axis, FALSE);
}
}
}