GPencil Eraser: Do not allow eraser radius to get smaller than 1 pixel
[blender.git] / source / blender / editors / gpencil / gpencil_paint.c
index 8c8f29b0f51b74b2c9d66265cf358e70075f4ee1..227cff5d5760d161e45a06e4f5a67870aca3ec68 100644 (file)
@@ -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;
                        }