[Bf-blender-cvs] [1ee17517f95] soc-2019-npr: LANPR: Generate 100px wide original stroke for GPencil.
YimingWu
noreply at git.blender.org
Wed Jul 17 05:09:47 CEST 2019
Commit: 1ee17517f9551b170091f9854f5782ac687e1e53
Author: YimingWu
Date: Wed Jul 17 11:06:33 2019 +0800
Branches: soc-2019-npr
https://developer.blender.org/rB1ee17517f9551b170091f9854f5782ac687e1e53
LANPR: Generate 100px wide original stroke for GPencil.
===================================================================
M source/blender/editors/lanpr/lanpr_ops.c
M source/blender/gpencil_modifiers/intern/MOD_gpencilmultiply.c
===================================================================
diff --git a/source/blender/editors/lanpr/lanpr_ops.c b/source/blender/editors/lanpr/lanpr_ops.c
index cc7bec051f5..0c682652a8e 100644
--- a/source/blender/editors/lanpr/lanpr_ops.c
+++ b/source/blender/editors/lanpr/lanpr_ops.c
@@ -4264,7 +4264,7 @@ static void lanpr_generate_gpencil_from_chain(Depsgraph *depsgraph,
int color_idx = 0;
int tot_points = 0;
- short thickness = 1;
+ short thickness = 100;
float mat[4][4];
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilmultiply.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilmultiply.c
index 0c6406e58e4..1190a89ea2f 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencilmultiply.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilmultiply.c
@@ -216,7 +216,7 @@ static void duplicateStroke(bGPDframe *gpf,
&t2_array[j * 3],
interpf(1 + offset, offset, offset_factor));
if (fading) {
- pt[j].pressure = gps->points[j].pressure * thickness_factor * 100;
+ pt[j].pressure = gps->points[j].pressure * thickness_factor;
pt[j].strength = gps->points[j].strength * opacity_factor;
}
}
More information about the Bf-blender-cvs
mailing list