Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2016-02-08 15:47:32 +0300
committerJoshua Leung <aligorith@gmail.com>2016-02-08 16:45:33 +0300
commit5136791de1d39db61a9e97bb54d3dbb5a1dc06c4 (patch)
treea042f8796e9aeaa5c62b7e7f1f5e41c2b157ae59 /source/blender/editors/gpencil
parenteb9953abc0c9a40c9e7ecf98ff25e7b1b9dbae09 (diff)
GPencil Eraser: Do not allow eraser radius to get smaller than 1 pixel
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c4
1 files changed, 2 insertions, 2 deletions
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;
}