Merge branch 'master' into blender2.8
authorCampbell Barton <ideasman42@gmail.com>
Thu, 3 May 2018 17:53:19 +0000 (19:53 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 3 May 2018 17:53:19 +0000 (19:53 +0200)
1  2 
source/blender/modifiers/intern/MOD_solidify.c

index 43fceaae22acac08d0b8692613f97382bb15917c,280f3c771eda88fb28373cad1eb61d8c5add2f16..e37bcccacfde2fb37e44382cec50c9260c80e831
@@@ -908,8 -907,7 +909,8 @@@ static Mesh *applyModifier
                                int k;
  
                                /* note, only the first vertex (lower half of the index) is calculated */
-                               normalize_v3_v3(nor_cpy, edge_vert_nos[ed->v1]);
 +                              BLI_assert(ed->v1 < numVerts);
+                               normalize_v3_v3(nor_cpy, edge_vert_nos[ed_orig->v1]);
  
                                for (k = 0; k < 2; k++) { /* loop over both verts of the edge */
                                        nor_short = mvert[*(&ed->v1 + k)].no;