[Bf-blender-cvs] [baa18867912] blender-v2.83-release: Fix T76990: Crash shortest path select with 'face stepping' when no faces.

Bastien Montagne noreply at git.blender.org
Mon May 25 12:46:19 CEST 2020


Commit: baa188679123d0540180ac07ada0bb26004c219b
Author: Bastien Montagne
Date:   Mon May 25 12:44:10 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rBbaa188679123d0540180ac07ada0bb26004c219b

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.

===================================================================

M	source/blender/bmesh/tools/bmesh_path.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list