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.
This commit is contained in:
Bastien Montagne 2020-05-25 12:44:10 +02:00
parent 41bb0548b0
commit baa1886791
Notes: blender-bot 2023-02-14 05:44:22 +01:00
Referenced by issue #76990, Blender crashes: shortest path selection with «face stepping» when there no faces
1 changed files with 1 additions and 1 deletions

View File

@ -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;