Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/mesh/editmesh_tools.c')
-rw-r--r--source/blender/editors/mesh/editmesh_tools.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index eb50babf395..f5ff3d0655e 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -2094,8 +2094,20 @@ static int edbm_hide_exec(bContext *C, wmOperator *op)
BMesh *bm = em->bm;
if (unselected) {
- if (bm->totvertsel == bm->totvert) {
- continue;
+ if (em->selectmode & SCE_SELECT_VERTEX) {
+ if (bm->totvertsel == bm->totvert) {
+ continue;
+ }
+ }
+ else if (em->selectmode & SCE_SELECT_EDGE) {
+ if (bm->totedgesel == bm->totedge) {
+ continue;
+ }
+ }
+ else if (em->selectmode & SCE_SELECT_FACE) {
+ if (bm->totfacesel == bm->totface) {
+ continue;
+ }
}
}
else {