[Bf-blender-cvs] [6700027863f] master: Fix T70328: Crash when editing loopcuts with AutoMerge & Split option

mano-wii noreply at git.blender.org
Tue Oct 1 19:54:42 CEST 2019


Commit: 6700027863f152ba06c911aa96f4528b3ce7e268
Author: mano-wii
Date:   Tue Oct 1 14:54:21 2019 -0300
Branches: master
https://developer.blender.org/rB6700027863f152ba06c911aa96f4528b3ce7e268

Fix T70328: Crash when editing loopcuts with AutoMerge & Split option

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

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

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

diff --git a/source/blender/bmesh/tools/bmesh_intersect_edges.c b/source/blender/bmesh/tools/bmesh_intersect_edges.c
index 6422904c83c..ffdcf179491 100644
--- a/source/blender/bmesh/tools/bmesh_intersect_edges.c
+++ b/source/blender/bmesh/tools/bmesh_intersect_edges.c
@@ -650,6 +650,8 @@ bool BM_mesh_intersect_edges(BMesh *bm, const char hflag, const float dist, GHas
   BMEdge *e;
   int i;
 
+  BM_mesh_elem_table_ensure(bm, BM_VERT | BM_EDGE);
+
   /* Store all intersections in this array. */
   struct EDBMSplitElem(*pair_iter)[2], (*pair_array)[2] = NULL;
   BLI_Stack *pair_stack = BLI_stack_new(sizeof(*pair_array), __func__);



More information about the Bf-blender-cvs mailing list