[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32217] trunk/blender/source/blender/ editors/gpencil/drawgpencil.c: 2d grease pencil thickness was double with width it should have been.
Campbell Barton
ideasman42 at gmail.com
Thu Sep 30 19:23:39 CEST 2010
Revision: 32217
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32217
Author: campbellbarton
Date: 2010-09-30 19:23:39 +0200 (Thu, 30 Sep 2010)
Log Message:
-----------
2d grease pencil thickness was double with width it should have been.
Modified Paths:
--------------
trunk/blender/source/blender/editors/gpencil/drawgpencil.c
Modified: trunk/blender/source/blender/editors/gpencil/drawgpencil.c
===================================================================
--- trunk/blender/source/blender/editors/gpencil/drawgpencil.c 2010-09-30 15:07:22 UTC (rev 32216)
+++ trunk/blender/source/blender/editors/gpencil/drawgpencil.c 2010-09-30 17:23:39 UTC (rev 32217)
@@ -244,9 +244,12 @@
/* ----- 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
*/
More information about the Bf-blender-cvs
mailing list