Blender Git Commit Log

Git Commits -> Revision b52d792

Revision b52d792 by Alexander Gavrilov
December 1, 2020, 18:31 (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: b52d792f295ac8d4da549337b17e8c4a01e6ef53
Parent Commit: 9b73791
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