From d8dbd49a2f23b7637f05fc058f39bdf6ab706624 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 31 May 2019 22:51:19 +1000 Subject: Cleanup: style, use braces in source/ Automated using clang-tidy. --- source/blender/bmesh/tools/bmesh_bevel.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source/blender/bmesh') diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c index 9c869890931..e0ac390fda4 100644 --- a/source/blender/bmesh/tools/bmesh_bevel.c +++ b/source/blender/bmesh/tools/bmesh_bevel.c @@ -1256,8 +1256,9 @@ static void set_profile_params(BevelParams *bp, BevVert *bv, BoundVert *bndv) pro->super_r = bp->pro_super_r; /* projection direction is direction of the edge */ sub_v3_v3v3(pro->proj_dir, e->e->v1->co, e->e->v2->co); - if (e->is_rev) + if (e->is_rev) { negate_v3(pro->proj_dir); + } normalize_v3(pro->proj_dir); project_to_edge(e->e, co1, co2, pro->midco); if (DEBUG_OLD_PROJ_TO_PERP_PLANE) { @@ -1832,8 +1833,9 @@ static void bevel_extend_edge_data(BevVert *bv) { VMesh *vm = bv->vmesh; - if (vm->mesh_kind == M_TRI_FAN) + if (vm->mesh_kind == M_TRI_FAN) { return; + } BoundVert *bcur = bv->vmesh->boundstart, *start = bcur; @@ -2180,10 +2182,11 @@ static int count_bound_vert_seams(BevVert *bv) } ans = 0; - for (i = 0; i < bv->edgecount; i++) + for (i = 0; i < bv->edgecount; i++) { if (bv->edges[i].is_seam) { ans++; } + } return ans; } -- cgit v1.2.3