From 5136791de1d39db61a9e97bb54d3dbb5a1dc06c4 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 9 Feb 2016 01:47:32 +1300 Subject: GPencil Eraser: Do not allow eraser radius to get smaller than 1 pixel --- source/blender/editors/gpencil/gpencil_paint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/gpencil') diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 8c8f29b0f51..227cff5d576 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -2145,8 +2145,8 @@ static int gpencil_draw_modal(bContext *C, wmOperator *op, const wmEvent *event) case PADMINUS: p->radius -= 5; - if (p->radius < 0) - p->radius = 0; + if (p->radius <= 0) + p->radius = 1; break; } -- cgit v1.2.3