2d grease pencil thickness was double with width it should have been.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 30 Sep 2010 17:23:39 +0000 (17:23 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 30 Sep 2010 17:23:39 +0000 (17:23 +0000)
source/blender/editors/gpencil/drawgpencil.c

index 4b8c58a..e6a1f58 100644 (file)
@@ -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
         */