Blender Git Commit Log

Git Commits -> Revision 851ea5d

Revision 851ea5d by Alexander Gavrilov
May 11, 2021, 14:53 (GMT)
Limit Rotation: add an Euler Order option and orthogonalize the matrix.

Since Limit Rotation is based on Euler decomposition, it should allow
specifying the order to use for the same reasons as Copy Rotation does,
namely, if the bone uses Quaternion rotation for its animation channels,
there is no way to choose the order for the constraint.

In addition, add a call to orthogonalize the matrix before processing
for the same reasons as D8915, and an early exit in case no limits are
enabled for a bit of extra efficiency.

Since the constraint goes through Euler decomposition, it would remove
shear even before the change, but the rotation won't make much sense.

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

Commit Details:

Full Hash: 851ea5da7730a1795390fc1f7e8f12bfe25ca089
Parent Commit: 8d519fe
Lines Changed: +29, -2

4 Modified Paths:

/release/scripts/startup/bl_ui/properties_constraint.py (+1, -0) (Diff)
/source/blender/blenkernel/intern/constraint.c (+20, -2) (Diff)
/source/blender/makesdna/DNA_constraint_types.h (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+6, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021