From 8d7005d7152459eb66fa33ae14eba94a0169adbb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 27 Mar 2019 17:14:36 +1100 Subject: Cleanup: style, use braces for bmesh --- source/blender/bmesh/operators/bmo_smooth_laplacian.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'source/blender/bmesh/operators/bmo_smooth_laplacian.c') diff --git a/source/blender/bmesh/operators/bmo_smooth_laplacian.c b/source/blender/bmesh/operators/bmo_smooth_laplacian.c index acdb49e94e1..bf376a757ef 100644 --- a/source/blender/bmesh/operators/bmo_smooth_laplacian.c +++ b/source/blender/bmesh/operators/bmo_smooth_laplacian.c @@ -229,13 +229,17 @@ static void init_laplacian_matrix(LaplacianSystem *sys) sys->zerola[idv1] = 1; sys->zerola[idv2] = 1; sys->zerola[idv3] = 1; - if (has_4_vert) sys->zerola[idv4] = 1; + if (has_4_vert) { + sys->zerola[idv4] = 1; + } } sys->ring_areas[idv1] += areaf; sys->ring_areas[idv2] += areaf; sys->ring_areas[idv3] += areaf; - if (has_4_vert) sys->ring_areas[idv4] += areaf; + if (has_4_vert) { + sys->ring_areas[idv4] += areaf; + } if (has_4_vert) { @@ -478,9 +482,13 @@ void bmo_smooth_laplacian_vert_exec(BMesh *bm, BMOperator *op) BMVert *v; LaplacianSystem *sys; - if (bm->totface == 0) return; + if (bm->totface == 0) { + return; + } sys = init_laplacian_system(bm->totedge, bm->totface, bm->totvert); - if (!sys) return; + if (!sys) { + return; + } sys->bm = bm; sys->op = op; -- cgit v1.2.3