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:
authorCampbell Barton <ideasman42@gmail.com>2014-05-23 14:49:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-05-23 14:50:27 +0400
commit4e13616b04f4827d4473e6bfe81b583fa4e7eac3 (patch)
tree52a9aeddaf149ba98b408cf3ecce9a861510e2d7
parentbec8cee7cf1c7b980c86298af430dbfaf1b7ed7e (diff)
Checker Deselect: keep active item selected by default
-rw-r--r--source/blender/editors/mesh/editmesh_select.c2
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");