diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-10-31 03:06:20 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-10-31 16:32:09 +0300 |
commit | c6180c2249e1864aefa244cecefb47a2f4fd508f (patch) | |
tree | ab3099a7fcb881bcf69da9c8d27f40b6011c1f73 /source/blender/editors | |
parent | ed079850cb55de1c2cf41571e52eec6ebb34b27e (diff) |
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
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mesh/editmesh_polybuild.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |