From a4fe338dd8c6822d27b8858bae5fa9a54972719c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 25 Jan 2019 07:10:13 +1100 Subject: Cleanup: add missing braces to draw manager --- source/blender/draw/engines/gpencil/gpencil_shader_fx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/draw/engines/gpencil/gpencil_shader_fx.c') diff --git a/source/blender/draw/engines/gpencil/gpencil_shader_fx.c b/source/blender/draw/engines/gpencil/gpencil_shader_fx.c index 925eaebab1f..1f47be0c34a 100644 --- a/source/blender/draw/engines/gpencil/gpencil_shader_fx.c +++ b/source/blender/draw/engines/gpencil/gpencil_shader_fx.c @@ -92,13 +92,15 @@ static bool effect_is_active(bGPdata *gpd, ShaderFxData *fx, bool is_render) static bool get_normal_vector(bGPdata *gpd, float r_point[3], float r_normal[3]) { for (bGPDlayer *gpl = gpd->layers.first; gpl; gpl = gpl->next) { - if (gpl->flag & GP_LAYER_HIDE) + if (gpl->flag & GP_LAYER_HIDE) { continue; + } /* get frame */ bGPDframe *gpf = gpl->actframe; - if (gpf == NULL) + if (gpf == NULL) { continue; + } for (bGPDstroke *gps = gpf->strokes.first; gps; gps = gps->next) { if (gps->totpoints >= 3) { bGPDspoint *pt = &gps->points[0]; -- cgit v1.2.3