diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-12-02 16:30:37 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-12-02 16:30:37 +0300 |
commit | 0f521ca4d9622247a740312e3e318a35c1d85aa9 (patch) | |
tree | 83735fb3cb53aad0afc5c0e04ed152f7e858627f | |
parent | 9516921c05bd9fee5c94942eb8e38f47ba7e4351 (diff) |
Fix T72071: Crash on snap to edge
Caused when the vertices index is dirty due to some mesh editing
operation like Extrude
-rw-r--r-- | source/blender/editors/transform/transform_snap_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c index 41486a2f767..604ecb984a9 100644 --- a/source/blender/editors/transform/transform_snap_object.c +++ b/source/blender/editors/transform/transform_snap_object.c @@ -1424,7 +1424,7 @@ static short snap_mesh_polygon(SnapObjectContext *sctx, l_iter = l_first = BM_FACE_FIRST_LOOP(f); if (snapdata->snap_to_flag & SCE_SNAP_MODE_EDGE) { elem = SCE_SNAP_MODE_EDGE; - BM_mesh_elem_index_ensure(em->bm, BM_EDGE); + BM_mesh_elem_index_ensure(em->bm, BM_VERT | BM_EDGE); BM_mesh_elem_table_ensure(em->bm, BM_VERT | BM_EDGE); do { cb_snap_edge(&nearest2d, |