Blender Git Commit Log

Git Commits -> Revision 33eabb8

Revision 33eabb8 by Alexander Gavrilov (master)
December 24, 2019, 16:58 (GMT)
Action Constraint: introduce a mix mode setting.

Currently the action channels are applied after the existing
transformation, as if the action controlled a child of the
bone. This is not very natural, but more importantly, the
transform tools are not designed to work conveniently with an
additional 'pseudo-child' transformation, resulting in effects
like an unexpected pivot location.

Implementing a Before mode that integrates the action channels
as if applied to a parent allows using the special transform
tool code intended for dealing with such constraints.

Note that in either mode, Action constraints should be added
in reverse order, putting a new constraint before the existing
ones that the Action was keyframed to work together.

In order to implement the option, extract a utility from
the Copy Transform constraint code for combining transforms
with special anti-shear scale handling that matches the
Aligned Inherit Scale mode.

The Before mode also requires switching the constraint to
the Local owner space, while the After mode can still use the
World space for efficiency as before. Since the constraint
doesn't have an Owner space option in the UI, this has to be
handled in an RNA setter.

For full backward compatibility, the original simple matrix
multiplication mode is preserved as the third option, but it
is not recommended due to creating shear.

Differential Revision: https://developer.blender.org/D6297

Commit Details:

Full Hash: 33eabb82207e165de45fb6a0ea74dec962de7265
Parent Commit: 9378deb
Lines Changed: +128, -34

7 Modified Paths:

/release/scripts/startup/bl_ui/properties_constraint.py (+2, -0) (Diff)
/source/blender/blenkernel/intern/constraint.c (+32, -34) (Diff)
/source/blender/blenlib/BLI_math_matrix.h (+2, -0) (Diff)
/source/blender/blenlib/intern/math_matrix.c (+21, -0) (Diff)
/source/blender/editors/transform/transform_convert.c (+9, -0) (Diff)
/source/blender/makesdna/DNA_constraint_types.h (+12, -0) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+50, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021