bugfix [#21743] Incorrect Rim Normals with Screw mod and Solidify Mod on a Curve...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 30 Mar 2010 23:16:42 +0000 (23:16 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 30 Mar 2010 23:16:42 +0000 (23:16 +0000)
source/blender/blenkernel/intern/modifier.c

index 3777c920be53603fab3df6ace8e70f5e2eac744c..acab22abde4753ac65c58b3be89fa49920fa6626 100644 (file)
@@ -5779,7 +5779,8 @@ static DerivedMesh *solidifyModifier_applyModifier(ModifierData *md,
 #define ADD_EDGE_USER(_v1, _v2, edge_ord) \
                eidx= GET_INT_FROM_POINTER(BLI_edgehash_lookup(edgehash, _v1, _v2)); \
                if(edge_users[eidx] == INVALID_UNUSED) { \
-                       edge_users[eidx]= (_v1 < _v2) ? i:(i+numFaces); \
+                       ed= orig_medge + eidx; \
+                       edge_users[eidx]= (_v1 < _v2) == (ed->v1 < ed->v2) ? i:(i+numFaces); \
                        edge_order[eidx]= edge_ord; \
                } else { \
                        edge_users[eidx]= INVALID_PAIR; \