From 4253e52771c40b347ddc0d02586f2c405afa30d4 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 2 Apr 2012 04:45:44 +0000 Subject: fix [#30768] Project from View UV map tool includes hidden geometry r45323 select all could select hidden faces, now BM_mesh_elem_flag_enable/disable_all takes an argument to skip hidden elements. --- source/blender/modifiers/intern/MOD_array.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'source/blender/modifiers/intern') diff --git a/source/blender/modifiers/intern/MOD_array.c b/source/blender/modifiers/intern/MOD_array.c index d552e73bc32..ba74eba04a5 100644 --- a/source/blender/modifiers/intern/MOD_array.c +++ b/source/blender/modifiers/intern/MOD_array.c @@ -474,20 +474,20 @@ static DerivedMesh *arrayModifier_doArray(ArrayModifierData *amd, } if ((amd->flags & MOD_ARR_MERGE) && - (amd->flags & MOD_ARR_MERGEFINAL) && - (count > 1)) { + (amd->flags & MOD_ARR_MERGEFINAL) && + (count > 1)) + { /* Merge first and last copies. Note that we can't use the - indexMap for this because (unless the array is forming a - loop) the offset between first and last is different from - dupe X to dupe X+1. */ + * indexMap for this because (unless the array is forming a + * loop) the offset between first and last is different from + * dupe X to dupe X+1. */ merge_first_last(em->bm, amd, &first_dupe_op, &dupe_op, &weld_op); } /* start capping */ - if (start_cap || end_cap) - { - BM_mesh_elem_flag_enable_all(em->bm, BM_VERT, BM_ELEM_TAG); + if (start_cap || end_cap) { + BM_mesh_elem_flag_enable_all(em->bm, BM_VERT, BM_ELEM_TAG, FALSE); if (start_cap) { float startoffset[4][4]; -- cgit v1.2.3