[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23571] branches/blender2.4/source/blender /blenkernel/intern/lattice.c: Bugfix for curve deform, would result in applying curve modifier inverting the normals for -Z.

Campbell Barton ideasman42 at gmail.com
Wed Sep 30 20:55:59 CEST 2009


Revision: 23571
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23571
Author:   campbellbarton
Date:     2009-09-30 20:55:59 +0200 (Wed, 30 Sep 2009)

Log Message:
-----------
Bugfix for curve deform, would result in applying curve modifier inverting the normals for -Z.

Incorrect comparison with the 'axis' and OB_NEG#, the axis matches MOD_CURVE_NEG# which is from 1-6, not 0-5.

Modified Paths:
--------------
    branches/blender2.4/source/blender/blenkernel/intern/lattice.c

Modified: branches/blender2.4/source/blender/blenkernel/intern/lattice.c
===================================================================
--- branches/blender2.4/source/blender/blenkernel/intern/lattice.c	2009-09-30 18:18:32 UTC (rev 23570)
+++ branches/blender2.4/source/blender/blenkernel/intern/lattice.c	2009-09-30 18:55:59 UTC (rev 23571)
@@ -550,7 +550,7 @@
 	}
 	
 	/* options */
-	if(ELEM3(axis, OB_NEGX, OB_NEGY, OB_NEGZ)) {
+	if(ELEM3(axis, OB_NEGX+1, OB_NEGY+1, OB_NEGZ+1)) { /* OB_NEG# 0-5, MOD_CURVE_POS# 1-6 */
 		if(cu->flag & CU_STRETCH)
 			fac= (-co[index]-cd->dmax[index])/(cd->dmax[index] - cd->dmin[index]);
 		else





More information about the Bf-blender-cvs mailing list