Fix T57850, bevel modifier crash with vertex groups and face area mode.

Used wrong Loop variable in this case.
This commit is contained in:
2018-11-16 10:06:05 -05:00
parent 54091d935f
commit 91aa81b61d
3 changed files with 3 additions and 3 deletions

View File

@@ -198,7 +198,7 @@ static void bevel_mod_harden_normals(
const bool has_vgroup = dvert != NULL;
const bool vert_of_group = (
has_vgroup &&
(defvert_find_index(&dvert[BM_elem_index_get(l->v)], vgroup) != NULL));
(defvert_find_index(&dvert[BM_elem_index_get(lfan_pivot->v)], vgroup) != NULL));
if (vert_of_group && hnmode == MOD_BEVEL_HN_FACE) {
float cur[3];