[Bf-blender-cvs] [6c3e2749e48] greasepencil-object: GPencil: Fix error after merge
Antonio Vazquez
noreply at git.blender.org
Mon Mar 9 16:13:58 CET 2020
Commit: 6c3e2749e483242d25c95a6af00b7b8c3452c35e
Author: Antonio Vazquez
Date: Mon Mar 9 16:13:50 2020 +0100
Branches: greasepencil-object
https://developer.blender.org/rB6c3e2749e483242d25c95a6af00b7b8c3452c35e
GPencil: Fix error after merge
===================================================================
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 592736cd4f4..fea589746c4 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -776,7 +776,7 @@ static short gp_stroke_addpoint(tGPsdata *p, const float mval[2], float pressure
}
/* FIXME the +2 means minimum jitter is 4 which is a bit strange for UX. */
const float exp_factor = brush_settings->draw_jitter + 2.0f;
- const float fac = rand * SQUARE(exp_factor) * jitpress;
+ const float fac = rand * square_f(exp_factor) * jitpress;
gp_brush_jitter(gpd, pt, fac);
}
/* apply randomness to pressure */
More information about the Bf-blender-cvs
mailing list