Cleanup: add braces

This commit is contained in:
Campbell Barton 2019-08-05 12:33:00 +10:00
parent 9fbf522dd8
commit f69ea92599

@ -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) &&