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

Used wrong Loop variable in this case.
This commit is contained in:
Howard Trickey 2018-11-16 10:06:05 -05:00
parent 54091d935f
commit 91aa81b61d
Notes: blender-bot 2023-04-19 22:54:54 +02:00
Referenced by issue #57850, Crash Bevel Modifier with Vertex Group
3 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit c2aef4a98f6cabef9a6d38a33035f02cf8233dd0
Subproject commit ad39a4b8961e2afb852852e2e3057bc3a770d2ee

@ -1 +1 @@
Subproject commit 5c4210d5b78c61137c5f32e7deb7561177ac0894
Subproject commit ee92205e9687eabb0ef91d8c437014ac720126ea

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];