From c6180c2249e1864aefa244cecefb47a2f4fd508f Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Thu, 31 Oct 2019 01:06:20 +0100 Subject: 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 --- source/blender/editors/mesh/editmesh_polybuild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/mesh/editmesh_polybuild.c b/source/blender/editors/mesh/editmesh_polybuild.c index 21c850160dd..a91f0f9274e 100644 --- a/source/blender/editors/mesh/editmesh_polybuild.c +++ b/source/blender/editors/mesh/editmesh_polybuild.c @@ -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; } -- cgit v1.2.3