diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-20 21:21:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-20 21:25:52 +0300 |
commit | 140d383393764f28405b34775b2e0dc22c51e5a6 (patch) | |
tree | 4f46878f42938d43219fbc1e64ced6f697ea25df /source/blender/editors/mesh/editmesh_polybuild.c | |
parent | 5aa728ec7eb8833daeb602ed4e8ccffff58880f2 (diff) |
Fix T57935: Crash Alt clicking w/ poly build tool
Diffstat (limited to 'source/blender/editors/mesh/editmesh_polybuild.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_polybuild.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_polybuild.c b/source/blender/editors/mesh/editmesh_polybuild.c index 882ee3092b4..c175102511a 100644 --- a/source/blender/editors/mesh/editmesh_polybuild.c +++ b/source/blender/editors/mesh/editmesh_polybuild.c @@ -426,7 +426,10 @@ static int edbm_polybuild_dissolve_at_cursor_invoke( BMEditMesh *em = vc.em; BMesh *bm = em->bm; - if (ele_act->head.htype == BM_EDGE) { + if (ele_act == NULL) { + /* pass */ + } + else if (ele_act->head.htype == BM_EDGE) { BMEdge *e_act = (BMEdge *)ele_act; BMLoop *l_a, *l_b; if (BM_edge_loop_pair(e_act, &l_a, &l_b)) { |