[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32158] trunk/blender/source/blender/ modifiers/intern/MOD_screw.c: bugfix, screw modifier was overwriting its own calculated normals of the original verts .

Campbell Barton ideasman42 at gmail.com
Mon Sep 27 22:48:50 CEST 2010


Revision: 32158
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32158
Author:   campbellbarton
Date:     2010-09-27 22:48:50 +0200 (Mon, 27 Sep 2010)

Log Message:
-----------
bugfix, screw modifier was overwriting its own calculated normals of the original verts.

Modified Paths:
--------------
    trunk/blender/source/blender/modifiers/intern/MOD_screw.c

Modified: trunk/blender/source/blender/modifiers/intern/MOD_screw.c
===================================================================
--- trunk/blender/source/blender/modifiers/intern/MOD_screw.c	2010-09-27 17:22:59 UTC (rev 32157)
+++ trunk/blender/source/blender/modifiers/intern/MOD_screw.c	2010-09-27 20:48:50 UTC (rev 32158)
@@ -304,6 +304,8 @@
 	medge_new =		result->getEdgeArray(result);
 	
 	origindex= result->getFaceDataArray(result, CD_ORIGINDEX);
+
+	DM_copy_vert_data(dm, result, 0, 0, totvert); /* copy first otherwise this overwrites our own vertex normals */
 	
 	/* Set the locations of the first set of verts */
 	
@@ -665,8 +667,6 @@
 	}
 	/* done with edge connectivity based normal flipping */
 	
-	DM_copy_vert_data(dm, result, 0, 0, totvert);
-	
 	/* Add Faces */
 	for (step=1; step < step_tot; step++) {
 		const int varray_stride= totvert * step;





More information about the Bf-blender-cvs mailing list