From a25a7714c592dff1fc1b3b4b0888bf984fa9e6fd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 22 Apr 2019 09:15:10 +1000 Subject: Cleanup: style, use braces for modifiers --- source/blender/modifiers/intern/MOD_laplaciansmooth.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source/blender/modifiers/intern/MOD_laplaciansmooth.c') diff --git a/source/blender/modifiers/intern/MOD_laplaciansmooth.c b/source/blender/modifiers/intern/MOD_laplaciansmooth.c index 0dfe5f49393..4a86c26cdeb 100644 --- a/source/blender/modifiers/intern/MOD_laplaciansmooth.c +++ b/source/blender/modifiers/intern/MOD_laplaciansmooth.c @@ -501,8 +501,9 @@ static bool is_disabled(const struct Scene *UNUSED(scene), flag = smd->flag & (MOD_LAPLACIANSMOOTH_X | MOD_LAPLACIANSMOOTH_Y | MOD_LAPLACIANSMOOTH_Z); /* disable if modifier is off for X, Y and Z or if factor is 0 */ - if (flag == 0) + if (flag == 0) { return 1; + } return 0; } @@ -527,8 +528,9 @@ static void deformVerts(ModifierData *md, { Mesh *mesh_src; - if (numVerts == 0) + if (numVerts == 0) { return; + } mesh_src = MOD_deform_mesh_eval_get(ctx->object, NULL, mesh, NULL, numVerts, false, false); @@ -549,8 +551,9 @@ static void deformVertsEM(ModifierData *md, { Mesh *mesh_src; - if (numVerts == 0) + if (numVerts == 0) { return; + } mesh_src = MOD_deform_mesh_eval_get(ctx->object, editData, mesh, NULL, numVerts, false, false); -- cgit v1.2.3