From afa8a76f4600565fd3d44d2ef272451044480a99 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 25 Aug 2008 11:09:19 +0000 Subject: [PATCH] Grease Pencil Eraser - Bugfix: * 3d strokes could only be erased from start of stroke NB: 3d-strokes could be erased starting from previous commit --- source/blender/src/gpencil.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/blender/src/gpencil.c b/source/blender/src/gpencil.c index 2ea806cf0f9..0b28e778f62 100644 --- a/source/blender/src/gpencil.c +++ b/source/blender/src/gpencil.c @@ -1174,9 +1174,13 @@ static void gp_stroke_eraser_dostroke (tGPsdata *p, short mval[], short mvalo[], /* get coordinates */ if (gps->flag & GP_STROKE_3DSPACE) { - project_short(&gps->points->x, xyval); + project_short(&pt1->x, xyval); x0= xyval[0]; y0= xyval[1]; + + project_short(&pt2->x, xyval); + x1= xyval[0]; + y1= xyval[1]; } else if (gps->flag & GP_STROKE_2DSPACE) { ipoco_to_areaco_noclip(p->v2d, &pt1->x, xyval);