Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-08-21 18:13:53 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-08-21 18:13:53 +0300
commit5200f6a2d7b56fa6d28c6f70d6c90642790d22c3 (patch)
tree4f150c4e28e0327e47f731167e6467b2b576b091 /source/blender/editors/mesh/editmesh_path.c
parente9182a0f5d0b1700e4bcdc11d0110ba7e9b97a0c (diff)
Fix crash in edbm_shortest_path_pick_ex
Diffstat (limited to 'source/blender/editors/mesh/editmesh_path.c')
-rw-r--r--source/blender/editors/mesh/editmesh_path.c2
1 files changed, 1 insertions, 1 deletions
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) {