[Bf-blender-cvs] [c5f9255] master: Fix T45921: Screw modifier flips vertex normals

Campbell Barton noreply at git.blender.org
Thu Aug 27 11:35:10 CEST 2015


Commit: c5f9255eed569af74f3c3ad4a2e33ffa39313500
Author: Campbell Barton
Date:   Thu Aug 27 19:22:16 2015 +1000
Branches: master
https://developer.blender.org/rBc5f9255eed569af74f3c3ad4a2e33ffa39313500

Fix T45921: Screw modifier flips vertex normals

===================================================================

M	source/blender/modifiers/intern/MOD_screw.c

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_screw.c b/source/blender/modifiers/intern/MOD_screw.c
index 2e43188..db65f44 100644
--- a/source/blender/modifiers/intern/MOD_screw.c
+++ b/source/blender/modifiers/intern/MOD_screw.c
@@ -766,7 +766,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
 				}
 
 				/* we wont be looping on this data again so copy normals here */
-				if (angle < 0.0f)
+				if ((angle < 0.0f) != do_flip)
 					negate_v3(vc->no);
 
 				normalize_v3(vc->no);




More information about the Bf-blender-cvs mailing list