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
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs