From baa188679123d0540180ac07ada0bb26004c219b Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 25 May 2020 12:44:10 +0200 Subject: Fix T76990: Crash shortest path select with 'face stepping' when no faces. Note that this sometimes gives no solution when there is a mix of edges with and without faces... But at leat this should be safe fix. --- source/blender/bmesh/tools/bmesh_path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/bmesh') diff --git a/source/blender/bmesh/tools/bmesh_path.c b/source/blender/bmesh/tools/bmesh_path.c index 0331ca476dd..713a68969e5 100644 --- a/source/blender/bmesh/tools/bmesh_path.c +++ b/source/blender/bmesh/tools/bmesh_path.c @@ -225,7 +225,7 @@ static void edgetag_add_adjacent(HeapSimple *heap, /* unlike vert/face, stepping faces disables scanning connected edges * and only steps over faces (selecting a ring of edges instead of a loop) */ - if (params->use_step_face == false) { + if (params->use_step_face == false || e_a->l == NULL) { BMIter viter; BMVert *v; -- cgit v1.2.3