Anim: Align new bones with the world axes #113138

Open
Sybren A. Stüvel wants to merge 2 commits from dr.sybren/blender:pr/align-default-bone-to-y into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

2 Commits

Author SHA1 Message Date
Sybren A. Stüvel e31989a726 Anim: align bone with world Y in Armature Edit mode
buildbot/vexp-code-patch-coordinator Build done. Details
Pressing Shift+A (Add > Single Bone) in Armature Edit mode will now
align the bone with the world Y-axis instead of the Z-axis. This makes
the bone's axes align with the world axes (instead of aligning bone-Y
with world-Z).

This only applies when using 'Align To: World' in the Editing
preferences. 'Align To: View' still behaves as before, and 'Align To: 3D
Cursor' behaves like 'World' because that option was never handled
anyway.
2023-10-02 11:04:31 +02:00
Sybren A. Stüvel 1d896dfb63 Anim: Align the bone of 'Shift-A > Armature' with the Y-axis
Align the default bone that's added to the Armature you get with
'Shift-A > Armature' to the Y-axis. When the alignment is set to 'World'
this will actually align the bone's axes with the world axes.

Note that the 'View' alignment option already aligned the bone along the
Y-axis, so the code has been simplified a bit.
2023-10-02 10:32:20 +02:00