[Bf-blender-cvs] [376e729] master: T44932: Disable pressure handling for "poly" mode too

Joshua Leung noreply at git.blender.org
Thu Aug 6 15:49:57 CEST 2015


Commit: 376e729de02a42f1a853c4e6d241a4a6dc1894f9
Author: Joshua Leung
Date:   Fri Aug 7 01:36:27 2015 +1200
Branches: master
https://developer.blender.org/rB376e729de02a42f1a853c4e6d241a4a6dc1894f9

T44932: Disable pressure handling for "poly" mode too

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

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 b77a722..cccb958 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -394,7 +394,7 @@ static short gp_stroke_addpoint(tGPsdata *p, const int mval[2], float pressure,
 		
 		/* store settings */
 		copy_v2_v2_int(&pt->x, mval);
-		pt->pressure = pressure;
+		pt->pressure = 1.0f; /* T44932 - Pressure vals are unreliable, so ignore for now */
 		pt->time = (float)(curtime - p->inittime);
 		
 		/* if there's stroke for this poly line session add (or replace last) point




More information about the Bf-blender-cvs mailing list