diff options
author | Joshua Leung <aligorith@gmail.com> | 2016-03-29 17:21:33 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-03-29 17:21:59 +0300 |
commit | 24d931ea585ce01bb76078c48765222dcfddd431 (patch) | |
tree | 1a5169c26f996c2209f4f35ee26ed0139509252f | |
parent | 3bdd7ba34ffa4e56b0fa75cecb408528d73a589b (diff) |
GPencil New Stroke Smoothing: Don't perform smoothing on pressure values
As noted by Antonio and Daniel, performing smoothing on the pressure values
for new strokes doesn't work that great. From an artist POV, it is apparently
"very strange that line thickness shrink suddenly after drawing it".
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 29f8d25c9c7..2a81b481ed1 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -711,9 +711,10 @@ static void gp_stroke_newfrombuffer(tGPsdata *p) } /* smooth stroke - only if there's something to do */ + /* NOTE: No pressure smoothing, or else we get annoying thickness changes while drawing... */ if (gpl->draw_smoothfac > 0.0f) { for (i = 0; i < gps->totpoints; i++) { - gp_smooth_stroke(gps, i, gpl->draw_smoothfac, true); + gp_smooth_stroke(gps, i, gpl->draw_smoothfac, false); } } |