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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user