[Bf-blender-cvs] [4e13616] master: Checker Deselect: keep active item selected by default
Campbell Barton
noreply at git.blender.org
Fri May 23 12:53:10 CEST 2014
Commit: 4e13616b04f4827d4473e6bfe81b583fa4e7eac3
Author: Campbell Barton
Date: Fri May 23 20:49:30 2014 +1000
https://developer.blender.org/rB4e13616b04f4827d4473e6bfe81b583fa4e7eac3
Checker Deselect: keep active item selected by default
===================================================================
M source/blender/editors/mesh/editmesh_select.c
===================================================================
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c
index cd39d4a..467723e 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");
More information about the Bf-blender-cvs
mailing list