diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-07-13 10:21:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-07-13 10:21:11 +0300 |
commit | 86b7698a3e203a1b9a26c88a0d1acc1cb8b090c6 (patch) | |
tree | c0e5d20211639cb5127001e7976731e73235d1a4 /source/blender/editors/mesh | |
parent | ffea77253e171da04b39cb6da50eae9e2bf929cd (diff) | |
parent | e656dcd36536c0d6cf33cdd8336e73292986ae3a (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index 61891907050..c8d8ac68334 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -446,6 +446,9 @@ BMVert *EDBM_vert_find_nearest_ex( unsigned int index; BMVert *eve; + /* No afterqueue (yet), so we check it now, otherwise the bm_xxxofs indices are bad. */ + ED_view3d_backbuf_validate(vc); + index = ED_view3d_backbuf_sample_rect( vc, vc->mval, dist_px, bm_wireoffs, 0xFFFFFF, &dist_test); eve = index ? BM_vert_at_index_find_or_table(bm, index - 1) : NULL; @@ -630,7 +633,8 @@ BMEdge *EDBM_edge_find_nearest_ex( float dist_test = 0.0f; unsigned int index; BMEdge *eed; - + + /* No afterqueue (yet), so we check it now, otherwise the bm_xxxofs indices are bad. */ ED_view3d_backbuf_validate(vc); index = ED_view3d_backbuf_sample_rect(vc, vc->mval, dist_px, bm_solidoffs, bm_wireoffs, &dist_test); |