diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-19 21:26:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-19 21:26:22 +0400 |
commit | e730c1af6db8547dd9949240f13c8eb712918dc0 (patch) | |
tree | 5a2a59e1adc7aaf99f66b6d8f0ca2b1360f461f6 /source/blender/editors/mesh | |
parent | a82eaf36ca44f18f97db11007e3accc21acbee4e (diff) |
committed check by mistake, its not needed.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_rip.c | 27 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 3 |
2 files changed, 3 insertions, 27 deletions
diff --git a/source/blender/editors/mesh/editmesh_rip.c b/source/blender/editors/mesh/editmesh_rip.c index f7895e931a2..34666c2cb7a 100644 --- a/source/blender/editors/mesh/editmesh_rip.c +++ b/source/blender/editors/mesh/editmesh_rip.c @@ -340,29 +340,6 @@ static void edbm_ripsel_deselect_helper(BMesh *bm, EdgeLoopPair *eloop_pairs, } /* --- end 'ripsel' selection handling code --- */ -/* return TRUE if the face is... -*/ -int edbm_rip_edge_is_ripable(BMEdge *e) -{ - int tot; - BMLoop *l_iter; - BMLoop *l_first; - - l_iter = l_first = e->l; - /* we could do more checks here, but save for face checks */ - do { - if (!BM_elem_flag_test(l_iter->f, BM_ELEM_HIDDEN)) { - if (!BM_elem_flag_test(l_iter->f, BM_ELEM_SELECT)) { - return TRUE; - } - tot++; - } - } while ((l_iter = l_iter->radial_next) != l_first); - - return tot < 2; -} - - /* based on mouse cursor position, it defines how is being ripped */ static int edbm_rip_invoke(bContext *C, wmOperator *op, wmEvent *event) { @@ -403,9 +380,7 @@ static int edbm_rip_invoke(bContext *C, wmOperator *op, wmEvent *event) /* BM_ELEM_SELECT --> BM_ELEM_TAG */ BM_ITER_MESH (e, &iter, em->bm, BM_EDGES_OF_MESH) { - if (edbm_rip_edge_is_ripable(e)) { - BM_elem_flag_set(e, BM_ELEM_TAG, BM_elem_flag_test(e, BM_ELEM_SELECT)); - } + BM_elem_flag_set(e, BM_ELEM_TAG, BM_elem_flag_test(e, BM_ELEM_SELECT)); } /* handle case of one vert selected. identify diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index ce1ecf2a12e..5a568084d28 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -730,7 +730,8 @@ static int edbm_dupli_extrude_cursor_invoke(bContext *C, wmOperator *op, wmEvent em_setup_viewcontext(C, &vc); - use_proj = (vc.scene->toolsettings->snap_flag & SCE_SNAP) && (vc.scene->toolsettings->snap_mode == SCE_SNAP_MODE_FACE); + use_proj = ((vc.scene->toolsettings->snap_flag & SCE_SNAP) && + (vc.scene->toolsettings->snap_mode == SCE_SNAP_MODE_FACE)); INIT_MINMAX(min, max); |