diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-25 07:00:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-25 07:00:33 +0400 |
commit | c1ed6020607ed8145a9329a9e9d38c86264bff30 (patch) | |
tree | fabc1f3f50c261ef797bdb7832c06642ae01275e /source/blender | |
parent | f67de7d80527b93ea6562116f4006964db843042 (diff) |
default simple deforms `Relative` option to be enabled, IMHO this shouldn't be an option (objects should always work relative to eachother). At least defaulting to ON gives users more predictable behavior (Transforming both objects together keeps them the same relative to eachother).
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesdna/DNA_modifier_types.h | 2 | ||||
-rw-r--r-- | source/blender/modifiers/intern/MOD_simpledeform.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h index 4172db90c05..b40af805f77 100644 --- a/source/blender/makesdna/DNA_modifier_types.h +++ b/source/blender/makesdna/DNA_modifier_types.h @@ -705,6 +705,8 @@ typedef struct SimpleDeformModifierData { /* indicates whether simple deform should use the local * coordinates or global coordinates of origin */ +/* XXX, this should have never been an option, all other modifiers work relatively + * (so moving both objects makes no change!) - Campbell */ #define MOD_SIMPLEDEFORM_ORIGIN_LOCAL (1<<0) #define MOD_UVPROJECT_MAX 10 diff --git a/source/blender/modifiers/intern/MOD_simpledeform.c b/source/blender/modifiers/intern/MOD_simpledeform.c index bf5f6cd095e..5c570d8d1ef 100644 --- a/source/blender/modifiers/intern/MOD_simpledeform.c +++ b/source/blender/modifiers/intern/MOD_simpledeform.c @@ -249,6 +249,7 @@ static void initData(ModifierData *md) SimpleDeformModifierData *smd = (SimpleDeformModifierData *) md; smd->mode = MOD_SIMPLEDEFORM_MODE_TWIST; + smd->originOpts = MOD_SIMPLEDEFORM_ORIGIN_LOCAL; smd->axis = 0; smd->origin = NULL; |