diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-30 21:23:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-30 21:23:39 +0400 |
commit | 09342644cff5b6cc077f549ee45ace929e15401d (patch) | |
tree | ed04245edf72b64d68d72ba1512f62e3ca2375f1 /source/blender/editors/gpencil/drawgpencil.c | |
parent | 645d283db3eac3cc7788b2905ddbc3a123d225cc (diff) |
2d grease pencil thickness was double with width it should have been.
Diffstat (limited to 'source/blender/editors/gpencil/drawgpencil.c')
-rw-r--r-- | source/blender/editors/gpencil/drawgpencil.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c index 4b8c58a5308..e6a1f58096a 100644 --- a/source/blender/editors/gpencil/drawgpencil.c +++ b/source/blender/editors/gpencil/drawgpencil.c @@ -244,9 +244,12 @@ static void gp_draw_stroke_3d (bGPDspoint *points, int totpoints, short thicknes /* ----- Fancy 2D-Stroke Drawing ------ */ /* draw a given stroke in 2d */ -static void gp_draw_stroke (bGPDspoint *points, int totpoints, short thickness, short dflag, short sflag, +static void gp_draw_stroke (bGPDspoint *points, int totpoints, short thickness_s, short dflag, short sflag, short debug, int offsx, int offsy, int winx, int winy) { + /* otherwise thickness is twice that of the 3D view */ + float thickness= (float)thickness_s * 0.5f; + /* if thickness is less than GP_DRAWTHICKNESS_SPECIAL, 'smooth' opengl lines look better * - 'smooth' opengl lines are also required if Image Editor 'image-based' stroke */ |