Option not to select with un-hide
[blender.git] / source / blender / editors / mesh / editmesh_utils.c
index c8151862b6c5a3f895dc9f87c3a15bc19d0362b3..fc568a8b8eefa15a9097d4487e95ed4dac62b081 100644 (file)
@@ -1225,7 +1225,7 @@ void EDBM_mesh_hide(BMEditMesh *em, bool swap)
 }
 
 
-void EDBM_mesh_reveal(BMEditMesh *em)
+void EDBM_mesh_reveal(BMEditMesh *em, bool select)
 {
        const char iter_types[3] = {BM_VERTS_OF_MESH,
                                    BM_EDGES_OF_MESH,
@@ -1264,7 +1264,7 @@ void EDBM_mesh_reveal(BMEditMesh *em)
 
                BM_ITER_MESH (ele, &iter, em->bm, iter_types[i]) {
                        if (BM_elem_flag_test(ele, BM_ELEM_TAG)) {
-                               BM_elem_select_set(em->bm, ele, true);
+                               BM_elem_select_set(em->bm, ele, select);
                        }
                }
        }