Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-09-28 00:48:50 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-09-28 00:48:50 +0400
commitbbfbbe8e134f2836bb764fb9474167106668987a (patch)
tree2eb140eea6bdf418147d79e2b8362a98b39fe561 /source/blender/modifiers
parente310b302ae08caf68c32da232560786801e681c7 (diff)
bugfix, screw modifier was overwriting its own calculated normals of the original verts.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_screw.c4
1 files changed, 2 insertions, 2 deletions
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;