Commit: f69ea92599aaf032276cc519f8bccd0a66ac30a5
Author: Campbell Barton
Date: Mon Aug 5 12:33:00 2019 +1000
Branches: master
https://developer.blender.org/rBf69ea92599aaf032276cc519f8bccd0a66ac30a5
Cleanup: add braces
===================================================================
M source/blender/editors/gpencil/gpencil_ops.c
===================================================================
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) &&
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs