Blender Git Commit Log

Git Commits -> Revision 50999f7

Revision 50999f7 by Alexander Gavrilov (master)
May 6, 2019, 18:55 (GMT)
Maintain Volume: introduce an option switching between modes.

After a lot of thinking about this, I decided that all operation modes
that I've tried over the past couple of years, including the original
2.79 one, have their uses after all. Thus the only reasonable solution
is to add yet another option.

The modes are:

- Strict: The current 2.80 mode, which overrides the original scaling
of the non-free axes to strictly preserve the volume. This is the most
obvious way one would expect a 'Maintain Volume' constraint to work.

- Uniform: The original 2.79 mode, which assumes that all axes have been
scaled the same as the free one when computing the volume. This seems
strange, but the net effect is that when simply scaling the object
uniformly with S, the volume is preserved; however, scaling the non-
free axes individually allows deviating from the locked volume.
This was obviously intended as a more or less convenient UI tool.

- Single Axis: My own variant of the intent of the Uniform scale, which
does volume-preserving if the object is scaled just on the Free axis,
while passing the non-free axis scaling through. I.e. instead of
uniform S scaling, the user has to scale the object just on its
primary axis to achieve constant volume. This can allow reducing the
number of animation curves when only constant volume scaling is needed,
or be an easier to control tool inside a complex rig.

Commit Details:

Full Hash: 50999f7fb0964839225f05f0f23cbd6e806226d4
Parent Commit: df1d990
Lines Changed: +85, -11

6 Modified Paths:

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