diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-02 14:14:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-02 14:14:04 +0300 |
commit | 342e79461b93241bb363049720268dd5cb7f402d (patch) | |
tree | f2b4fb790e7737e57b389af5aaabf196700afeec /source/blender/editors/mesh/editmesh_mods.c | |
parent | 55ad8623864ab90588ebd4a1d1ade0a273fbdfda (diff) |
bugfix [#24398] Select Nth
- use first selected if non active (clears confusion since this isn't at all clear)
- dont take unselected into account when calculating connectivity, would mess up in many cases.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_mods.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_mods.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/editmesh_mods.c b/source/blender/editors/mesh/editmesh_mods.c index ab01a773020..309ee6b57e2 100644 --- a/source/blender/editors/mesh/editmesh_mods.c +++ b/source/blender/editors/mesh/editmesh_mods.c @@ -4581,10 +4581,7 @@ static int mesh_select_nth_exec(bContext *C, wmOperator *op) EditMesh *em= BKE_mesh_get_editmesh(((Mesh *)obedit->data)); int nth = RNA_int_get(op->ptr, "nth"); - if(EM_deselect_nth(em, nth) == 0) { - BKE_report(op->reports, RPT_ERROR, "Mesh has no active vert/edge/face."); - return OPERATOR_CANCELLED; - } + EM_deselect_nth(em, nth); BKE_mesh_end_editmesh(obedit->data, em); |