From bbfbbe8e134f2836bb764fb9474167106668987a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 27 Sep 2010 20:48:50 +0000 Subject: bugfix, screw modifier was overwriting its own calculated normals of the original verts. --- source/blender/modifiers/intern/MOD_screw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/modifiers') diff --git a/source/blender/modifiers/intern/MOD_screw.c b/source/blender/modifiers/intern/MOD_screw.c index 067567b9cda..2221e8cc1bf 100644 --- a/source/blender/modifiers/intern/MOD_screw.c +++ b/source/blender/modifiers/intern/MOD_screw.c @@ -304,6 +304,8 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob, 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 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob, } /* 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; -- cgit v1.2.3