From c5b2f12b36a048ffe7c78f42ffeed1e190ad8d1d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 3 Jun 2016 01:07:29 +1000 Subject: Fix T48456: 2x pixel size clamps min brush size Using double pixel size prevented 1px brushes D2044 by @jeske --- source/blender/editors/sculpt_paint/paint_cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/sculpt_paint') diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c index e4e9976c10d..eba9448aa40 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.c +++ b/source/blender/editors/sculpt_paint/paint_cursor.c @@ -1016,7 +1016,7 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused)) translation[1] = y; outline_alpha = 0.5; outline_col = brush->add_col; - final_radius = BKE_brush_size_get(scene, brush) * zoomx; + final_radius = (BKE_brush_size_get(scene, brush) * zoomx) / U.pixelsize; /* don't calculate rake angles while a stroke is active because the rake variables are global and * we may get interference with the stroke itself. For line strokes, such interference is visible */ -- cgit v1.2.3