diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-05-23 14:49:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-05-23 14:50:27 +0400 |
commit | 4e13616b04f4827d4473e6bfe81b583fa4e7eac3 (patch) | |
tree | 52a9aeddaf149ba98b408cf3ecce9a861510e2d7 /source/blender/editors/mesh | |
parent | bec8cee7cf1c7b980c86298af430dbfaf1b7ed7e (diff) |
Checker Deselect: keep active item selected by default
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index cd39d4a0776..467723e5e0a 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -2623,6 +2623,8 @@ static int edbm_select_nth_exec(bContext *C, wmOperator *op) /* so input of offset zero ends up being (nth - 1) */ offset = mod_i(offset, nth); + /* depth starts at 1, this keeps active item selected */ + offset -= 1; if (edbm_deselect_nth(em, nth, offset) == false) { BKE_report(op->reports, RPT_ERROR, "Mesh has no active vert/edge/face"); |