forked from bartvdbraak/blender
Cleanup: add braces
This commit is contained in:
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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user