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

This commit is contained in:
Germano Cavalcante 2019-10-01 14:54:21 -03:00
parent 72666ae3e7
commit 6700027863
Notes: blender-bot 2023-02-14 07:25:46 +01:00
Referenced by issue #70328, crash : loopcut number of cuts
1 changed files with 2 additions and 0 deletions

View File

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