Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2016-03-29 17:21:33 +0300
committerJoshua Leung <aligorith@gmail.com>2016-03-29 17:21:59 +0300
commit24d931ea585ce01bb76078c48765222dcfddd431 (patch)
tree1a5169c26f996c2209f4f35ee26ed0139509252f /source/blender/editors/gpencil
parent3bdd7ba34ffa4e56b0fa75cecb408528d73a589b (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".
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c3
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);
}
}