From 4e13616b04f4827d4473e6bfe81b583fa4e7eac3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 23 May 2014 20:49:30 +1000 Subject: [PATCH] Checker Deselect: keep active item selected by default --- source/blender/editors/mesh/editmesh_select.c | 2 ++ 1 file changed, 2 insertions(+) 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");