diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-15 17:18:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-15 17:18:35 +0400 |
commit | 87919be4f6f83900b03bb68bcc2b21455f8a00c9 (patch) | |
tree | 34f90f2ba597f697ef41f89985167c2b637701ab /source/blender/editors | |
parent | 03f02019f221cb4c0f122d0bb1fe982cac60f70e (diff) |
fix for own bad mistake using alloca in a loop, also knife project wasnt selecting correctly.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife_project.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife_project.c b/source/blender/editors/mesh/editmesh_knife_project.c index 7bb7e362c98..d5291602080 100644 --- a/source/blender/editors/mesh/editmesh_knife_project.c +++ b/source/blender/editors/mesh/editmesh_knife_project.c @@ -133,9 +133,11 @@ static int knifeproject_exec(bContext *C, wmOperator *op) EDBM_mesh_knife(C, polys, true); /* select only tagged faces */ - BM_mesh_elem_hflag_disable_all(em->bm, BM_VERT | BM_EDGE | BM_FACE, BM_ELEM_TAG, false); + BM_mesh_elem_hflag_disable_all(em->bm, BM_VERT | BM_EDGE | BM_FACE, BM_ELEM_SELECT, false); BM_mesh_elem_hflag_enable_test(em->bm, BM_FACE, BM_ELEM_SELECT, true, BM_ELEM_TAG); + BM_mesh_select_mode_flush(em->bm); + BLI_linklist_freeN(polys); return OPERATOR_FINISHED; |