Fix T71053: Poly Build tool crashes blender when deleting wire vertices

Dissolve the vertex when it is wire instead of trying to collapse the
edge. When collapsing the edge, ##v_kill->e## was not NULL, so the
assert in ##bmesh_kernel_join_vert_kill_edge## fails.

Reviewed By: jbakker

Maniphest Tasks: T71053

Differential Revision: https://developer.blender.org/D6159
This commit is contained in:
Pablo Dobarro 2019-10-31 01:06:20 +01:00
parent ed079850cb
commit c6180c2249
Notes: blender-bot 2023-02-14 10:04:50 +01:00
Referenced by issue #71053, Poly Build tool crashes blender when deleting vertices
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ static int edbm_polybuild_delete_at_cursor_invoke(bContext *C,
}
if (ele_act->head.htype == BM_VERT) {
BMVert *v_act = (BMVert *)ele_act;
if (BM_vert_is_edge_pair(v_act)) {
if (BM_vert_is_edge_pair(v_act) && !BM_vert_is_wire(v_act)) {
BM_edge_collapse(bm, v_act->e, v_act, true, true);
changed = true;
}