Blender Git Loki

Git Commits -> Revision cb9e084

Revision cb9e084 by Alexander Gavrilov
January 24, 2021, 14:39 (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: cb9e0847389f68d581cae91840e5e775ed405f15
Parent Commit: 51c7f5a
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021