From 5200f6a2d7b56fa6d28c6f70d6c90642790d22c3 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Tue, 21 Aug 2018 12:13:53 -0300 Subject: Fix crash in edbm_shortest_path_pick_ex --- source/blender/editors/mesh/editmesh_path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/mesh/editmesh_path.c') diff --git a/source/blender/editors/mesh/editmesh_path.c b/source/blender/editors/mesh/editmesh_path.c index 68157dab4e0..7bc12aa9ebf 100644 --- a/source/blender/editors/mesh/editmesh_path.c +++ b/source/blender/editors/mesh/editmesh_path.c @@ -563,7 +563,7 @@ static bool edbm_shortest_path_pick_ex( BMElem *ele_src, BMElem *ele_dst) { - if (ELEM(NULL, ele_src, ele_dst) && (ele_src->head.htype != ele_dst->head.htype)) { + if (ELEM(NULL, ele_src, ele_dst) || (ele_src->head.htype != ele_dst->head.htype)) { /* pass */ } else if (ele_src->head.htype == BM_VERT) { -- cgit v1.2.3