diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-05 05:33:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-05 05:46:58 +0300 |
commit | f69ea92599aaf032276cc519f8bccd0a66ac30a5 (patch) | |
tree | 4bc84a7d1a78154fc182d5f174c785b0fd23ffa6 /source/blender/editors/gpencil/gpencil_ops.c | |
parent | 9fbf522dd8c0cf5008e46534ffadcabed2bae60c (diff) |
Cleanup: add braces
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_ops.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_ops.c | 6 |
1 files changed, 4 insertions, 2 deletions
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) && |