diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-13 07:41:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-13 07:41:07 +0400 |
commit | 8c70caf9665217554708318362e8a6c8ffef2906 (patch) | |
tree | e28d39cb6749951f325ab98473173e11ab99c906 /source/blender/bmesh | |
parent | bdce58a42c3ca63773ce9c6b32189cfe10b27039 (diff) |
fix for UV reveal (wasnt selecting all verts because check for unselected vert was incorrect after selecting the first face).
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_marking.c | 4 | ||||
-rw-r--r-- | source/blender/bmesh/intern/bmesh_marking.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/bmesh/intern/bmesh_marking.c b/source/blender/bmesh/intern/bmesh_marking.c index a83987be94c..1b80bda318e 100644 --- a/source/blender/bmesh/intern/bmesh_marking.c +++ b/source/blender/bmesh/intern/bmesh_marking.c @@ -452,7 +452,7 @@ void BM_mesh_select_mode_set(BMesh *bm, int selectmode) * Deselect's one type of elements then re-selects another, * Use case is to de-select stray edges or verts. */ -void BM_mesh_select_flush_strip(BMesh *bm, const char htype_desel, const char htype_sel) +void BM_mesh_select_flush_strip(BMesh *bm, const char htype_desel, const char htype_sel, const char hflag_test) { const char iter_types[3] = {BM_VERTS_OF_MESH, BM_EDGES_OF_MESH, @@ -477,7 +477,7 @@ void BM_mesh_select_flush_strip(BMesh *bm, const char htype_desel, const char ht if (htype_sel & flag_types[i]) { ele = BM_iter_new(&iter, bm, iter_types[i], NULL); for ( ; ele; ele = BM_iter_step(&iter)) { - if (BM_elem_flag_test(ele, BM_ELEM_SELECT)) { + if (BM_elem_flag_test(ele, hflag_test)) { BM_elem_select_set(bm, ele, TRUE); } } diff --git a/source/blender/bmesh/intern/bmesh_marking.h b/source/blender/bmesh/intern/bmesh_marking.h index b981f917df6..b72b3f73950 100644 --- a/source/blender/bmesh/intern/bmesh_marking.h +++ b/source/blender/bmesh/intern/bmesh_marking.h @@ -60,7 +60,7 @@ void BM_mesh_select_mode_flush(BMesh *bm); void BM_mesh_deselect_flush(BMesh *bm); void BM_mesh_select_flush(BMesh *bm); -void BM_mesh_select_flush_strip(BMesh *bm, const char htype_desel, const char htype_sel); +void BM_mesh_select_flush_strip(BMesh *bm, const char htype_desel, const char htype_sel, const char hflag_test); int BM_mesh_enabled_flag_count(BMesh *bm, const char htype, const char hflag, int respecthide); int BM_mesh_disabled_flag_count(BMesh *bm, const char htype, const char hflag, int respecthide); |