From fa63c297753636c149fbb1a3877d9b3d93601357 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 13 Apr 2011 15:30:26 +0000 Subject: work-around for grease pencil single points in the image view drawing really large (bigger then the image). --- source/blender/editors/gpencil/drawgpencil.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c index 74e7cae93f5..598c0e5fa26 100644 --- a/source/blender/editors/gpencil/drawgpencil.c +++ b/source/blender/editors/gpencil/drawgpencil.c @@ -161,7 +161,7 @@ static void gp_draw_stroke_point (bGPDspoint *points, short thickness, short sfl glEnd(); } else { - int spacetype= 0; // XXX make local gpencil state var? + // int spacetype= 0; // XXX make local gpencil state var? float co[2]; /* get coordinates of point */ @@ -181,8 +181,12 @@ static void gp_draw_stroke_point (bGPDspoint *points, short thickness, short sfl /* if thickness is less than GP_DRAWTHICKNESS_SPECIAL, simple dot looks ok * - also mandatory in if Image Editor 'image-based' dot */ +#if 0 if ( (thickness < GP_DRAWTHICKNESS_SPECIAL) || ((spacetype==SPACE_IMAGE) && (sflag & GP_STROKE_2DSPACE)) ) +#else + if(1) /* when spacetype is back uncomment the check above */ +#endif { glBegin(GL_POINTS); glVertex2fv(co); -- cgit v1.2.3