forked from bartvdbraak/blender
Bugfix #20942: Unassigned Vertex Groups crash Blender on sort
This commit fixes the crash, but it seems that the sorting doesn't work correctly with or without any vertices assigned.
This commit is contained in:
parent
0ff879af73
commit
2c5ef58b8b
@ -1872,7 +1872,7 @@ static int vertex_group_sort_exec(bContext *C, wmOperator *op)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ED_vgroup_give_array(ob->data, &dvert, &dvert_tot);
|
ED_vgroup_give_array(ob->data, &dvert, &dvert_tot);
|
||||||
while(dvert_tot--) {
|
while(dvert && dvert_tot--) {
|
||||||
defvert_remap(dvert, sort_map);
|
defvert_remap(dvert, sort_map);
|
||||||
dvert++;
|
dvert++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user