Page MenuHome

Apply Pose as Rest Pose: implement an Only Selected bones option.

Authored by Alexander Gavrilov (angavrilov) on Oct 6 2018, 5:28 PM.



It seems useful, and I've seen people asking about it.

The most difficult part is handling parent-child relations correctly:
when a parent is applied, the children should be moved accordingly,
and when applying a child, it should not include transformation from
unapplied parents. All this requires walking bones as a tree, instead
of a flat list.

Limitation: Applying bones with non-uniform scaling without also applying
children will distort non-rest posing on said children for reasons related
to T54159 (basically, non-uniform scale plus rotation creates shear, and
Blender matrix decomposition utilities don't have tools to deal with it).

Diff Detail

rB Blender

Event Timeline

I've been sitting on this for a while because of the limitation, but maybe it's better to just add this with a documented caveat.

Some tests I've been using, the last having an example of the limitation:

Rebased, fixed conflicts, and tested that it still works.

@Brecht Van Lommel (brecht) For some reason I thought this was already committed, but apparently not...

This revision is now accepted and ready to land.May 13 2019, 4:50 PM
This revision was automatically updated to reflect the committed changes.