[Bf-blender-cvs] [f8cd309708f] greasepencil-object: GPencil: Cleanup code

Antonio Vazquez noreply at git.blender.org
Thu Apr 23 11:55:25 CEST 2020


Commit: f8cd309708f10044a715e450a5729036b2b19fc1
Author: Antonio Vazquez
Date:   Thu Apr 23 11:55:11 2020 +0200
Branches: greasepencil-object
https://developer.blender.org/rBf8cd309708f10044a715e450a5729036b2b19fc1

GPencil: Cleanup code

===================================================================

M	source/blender/editors/gpencil/gpencil_paint.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 8ab5a14d6f1..8d7acad0ff8 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -2763,7 +2763,7 @@ static void gpencil_draw_apply_event(bContext *C,
   /* handle pressure sensitivity (which is supplied by tablets or otherwise 1.0) */
   p->pressure = event->tablet.pressure;
   /* By default use pen pressure for random curves but attenuated. */
-  p->random_settings.pen_press = p->pressure * p->pressure * p->pressure;
+  p->random_settings.pen_press = pow(p->pressure, 3.0f);
 
   /* Hack for pressure sensitive eraser on D+RMB when using a tablet:
    * The pen has to float over the tablet surface, resulting in



More information about the Bf-blender-cvs mailing list