Fix bevel crash T56287, when face strength goes to 1.

This commit is contained in:
Howard Trickey 2018-08-22 07:08:42 -04:00
parent 9e11b8e249
commit 9f6cde53cf
4 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 371960484a38fc64e0a2635170a41a0d8ab2f6bd
Subproject commit 9ae033c49c1b16718eac6306bdc271a5e6e6bf38

@ -1 +1 @@
Subproject commit 15b25a42783d1e516b5298d70b582fae2559ae17
Subproject commit f178e6c933a25c621a5cc7d92935b66cd2ec2f5d

View File

@ -232,7 +232,7 @@ static void bevel_mod_harden_normals(
short *clnors = BM_ELEM_CD_GET_VOID_P(l, cd_clnors_offset);
/* If vertex is edge vert with 1 reconnected face */
if (recon_face_count == 1 || do_normal_to_recon) {
if (recon_face_count == 1 || (recon_face != NULL && do_normal_to_recon)) {
BKE_lnor_space_custom_normal_to_data(
bm->lnor_spacearr->lspacearr[l_index], recon_face->no, clnors);
}

@ -1 +1 @@
Subproject commit 11656ebaf7f912cdb1b5eb39c5d0a3b5d492c1aa
Subproject commit ca3e38d89666c422d6681bb06967a59ef1a4a7df