Blender Git Commit Log

Git Commits -> Revision 1854ccc

Revision 1854ccc by Alexander Gavrilov (master)
May 6, 2019, 16:03 (GMT)
Drivers: add an Average Scale option to the Transform Channel driver vars.

Unlike location and rotation, there is a meaningful definition of
overall/average scaling via the total change in the volume. This
adds an option to retrieve that via a single driver variable,
instead of having to use three and an expression.

Using the determinant to compute the volume scaling also allows
detecting flipping due to negative scale - this is impossible
to do via the three variable approach.

The volume_scale functions are added purely for code readability:
'volume scale factor' is easier to understand than determinant.

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

Commit Details:

Full Hash: 1854cccad7c31a6b8235faf980ffdd6a80163e02
Parent Commit: 11d2c0b
Lines Changed: +31, -0

5 Modified Paths:

/source/blender/blenkernel/intern/fcurve.c (+5, -0) (Diff)
/source/blender/blenlib/BLI_math_matrix.h (+4, -0) (Diff)
/source/blender/blenlib/intern/math_matrix.c (+20, -0) (Diff)
/source/blender/makesdna/DNA_anim_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_fcurve.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021