From f69ea92599aaf032276cc519f8bccd0a66ac30a5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 5 Aug 2019 12:33:00 +1000 Subject: Cleanup: add braces --- source/blender/editors/gpencil/gpencil_ops.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/gpencil/gpencil_ops.c b/source/blender/editors/gpencil/gpencil_ops.c index d259bb9183c..a1645a5c67d 100644 --- a/source/blender/editors/gpencil/gpencil_ops.c +++ b/source/blender/editors/gpencil/gpencil_ops.c @@ -81,12 +81,14 @@ static bool gp_stroke_paintmode_poll_with_tool(bContext *C, const char gpencil_t { /* TODO: limit this to mode, but review 2D editors */ bGPdata *gpd = CTX_data_gpencil_data(C); - if (!gpd) + if (!gpd) { return false; + } ToolSettings *ts = CTX_data_tool_settings(C); - if (!ts || !ts->gp_paint) + if (!ts || !ts->gp_paint) { return false; + } Brush *brush = BKE_paint_brush(&ts->gp_paint->paint); return ((gpd->flag & GP_DATA_STROKE_PAINTMODE) && (brush && brush->gpencil_settings) && -- cgit v1.2.3