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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-05-01 09:59:58 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-01 09:59:58 +0400
commit2cda8a9efbd15b1134c2594a15c2c42e9be71b59 (patch)
treeb2c5efb967c9e043db531d5040f2d2269e2d85be /source
parent30c7183874b64da9b7058399979d06b2e0bec3c4 (diff)
fix for select ungrouped vertices not flushing, also group select menu items more logically.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/mesh/editmesh_select.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c
index 2b836261fba..956d7cf1112 100644
--- a/source/blender/editors/mesh/editmesh_select.c
+++ b/source/blender/editors/mesh/editmesh_select.c
@@ -3331,12 +3331,13 @@ static int edbm_select_ungrouped_exec(bContext *C, wmOperator *op)
if (!BM_elem_flag_test(eve, BM_ELEM_HIDDEN)) {
MDeformVert *dv = CustomData_bmesh_get(&em->bm->vdata, eve->head.data, CD_MDEFORMVERT);
/* no dv or dv set with no weight */
- if (dv == NULL || (dv && dv->dw == NULL)) {
+ if (ELEM(NULL, dv, dv->dw)) {
BM_vert_select_set(em->bm, eve, true);
}
}
}
+ EDBM_selectmode_flush(em);
WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data);
return OPERATOR_FINISHED;