diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-06 21:45:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-06 21:45:58 +0400 |
commit | 1dc993ecd2d59e30d0ffcb49bb44a6073e6eb254 (patch) | |
tree | 279224db375d38b881c58f06edf84eb2e696ab89 | |
parent | 0214dac604b15de6106cbe4da1411397b75d1504 (diff) |
fix own regression in edgeloop delete [#36389] loop detete crashes
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 6410e97322c..629618fd353 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -3286,7 +3286,7 @@ static int edbm_delete_edgeloop_exec(bContext *C, wmOperator *op) BM_mesh_elem_hflag_disable_all(em->bm, BM_FACE, BM_ELEM_TAG, false); BM_ITER_MESH (e, &iter, em->bm, BM_EDGES_OF_MESH) { - if (BM_elem_flag_test(e, BM_ELEM_SELECT)) { + if (BM_elem_flag_test(e, BM_ELEM_SELECT) && e->l) { BMLoop *l_iter = e->l; do { BM_elem_flag_enable(l_iter->f, BM_ELEM_TAG); |