diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-08-28 16:56:27 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-08-29 17:22:27 +0300 |
commit | 497297850a49b2ed422ae286703ddc98b23a5366 (patch) | |
tree | cf08f1570144ea16dc0f04669ba785650ae1f717 /source/blender/makesdna/DNA_constraint_types.h | |
parent | c160853b043724172518bd52a4da361f5291a978 (diff) |
Copy Scale: support copying arbitrary non-uniform scale as uniform.
Uniform scale is superior to non-uniform scale in that it works with
parenting without causing shear. Thus it is a valid desire in some
cases to turn arbitrary scale into guaranteed uniform scale.
Implementing this in the Copy Scale constraint allows one for instance
to 'inherit scale as uniform' by disabling Inherit Scale, and using
Copy Scale from parent with Offset and Make Uniform.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D5614
Diffstat (limited to 'source/blender/makesdna/DNA_constraint_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_constraint_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h index eda52fdf14a..17ce279f1b7 100644 --- a/source/blender/makesdna/DNA_constraint_types.h +++ b/source/blender/makesdna/DNA_constraint_types.h @@ -748,6 +748,7 @@ typedef enum eCopyScale_Flags { SIZELIKE_Z = (1 << 2), SIZELIKE_OFFSET = (1 << 3), SIZELIKE_MULTIPLY = (1 << 4), + SIZELIKE_UNIFORM = (1 << 5), } eCopyScale_Flags; /* bTransformConstraint.to/from */ |