diff options
author | Joshua Leung <aligorith@gmail.com> | 2016-03-27 16:55:59 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-03-27 17:21:29 +0300 |
commit | a7538b19c6641be5e210a1f8286c5cd4ce945389 (patch) | |
tree | 39773304bee6908dd6a3ebb23cd33318d2aa656e /source/blender/editors/gpencil/gpencil_brush.c | |
parent | 00cfbeef11c62364e343df27d00fd363f625f2ad (diff) |
GPencil: Restore ability for Smooth brush to affect pressure values of strokes
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_brush.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_brush.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c index ab6217c20e3..cb992267b6c 100644 --- a/source/blender/editors/gpencil/gpencil_brush.c +++ b/source/blender/editors/gpencil/gpencil_brush.c @@ -223,9 +223,10 @@ static bool gp_brush_smooth_apply(tGP_BrushEditData *gso, bGPDstroke *gps, int i GP_EditBrush_Data *brush = gso->brush; bGPDspoint *pt = &gps->points[i]; float inf = gp_brush_influence_calc(gso, radius, co); + bool affect_pressure = (brush->flag & GP_EDITBRUSH_FLAG_SMOOTH_PRESSURE) != 0; /* perform smoothing */ - return gp_smooth_stroke(gps, i, inf); + return gp_smooth_stroke(gps, i, inf, affect_pressure); } /* ----------------------------------------------- */ |