[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50871] trunk/blender/source/blender: default simple deforms `Relative` option to be enabled, IMHO this shouldn' t be an option (objects should always work relative to eachother).

Campbell Barton ideasman42 at gmail.com
Tue Sep 25 05:00:35 CEST 2012


Revision: 50871
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50871
Author:   campbellbarton
Date:     2012-09-25 03:00:33 +0000 (Tue, 25 Sep 2012)
Log Message:
-----------
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).

Modified Paths:
--------------
    trunk/blender/source/blender/makesdna/DNA_modifier_types.h
    trunk/blender/source/blender/modifiers/intern/MOD_simpledeform.c

Modified: trunk/blender/source/blender/makesdna/DNA_modifier_types.h
===================================================================
--- trunk/blender/source/blender/makesdna/DNA_modifier_types.h	2012-09-25 01:21:21 UTC (rev 50870)
+++ trunk/blender/source/blender/makesdna/DNA_modifier_types.h	2012-09-25 03:00:33 UTC (rev 50871)
@@ -705,6 +705,8 @@
 
 /* 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

Modified: trunk/blender/source/blender/modifiers/intern/MOD_simpledeform.c
===================================================================
--- trunk/blender/source/blender/modifiers/intern/MOD_simpledeform.c	2012-09-25 01:21:21 UTC (rev 50870)
+++ trunk/blender/source/blender/modifiers/intern/MOD_simpledeform.c	2012-09-25 03:00:33 UTC (rev 50871)
@@ -249,6 +249,7 @@
 	SimpleDeformModifierData *smd = (SimpleDeformModifierData *) md;
 
 	smd->mode = MOD_SIMPLEDEFORM_MODE_TWIST;
+	smd->originOpts = MOD_SIMPLEDEFORM_ORIGIN_LOCAL;
 	smd->axis = 0;
 
 	smd->origin   =  NULL;




More information about the Bf-blender-cvs mailing list