Fix T48456: 2x pixel size clamps min brush size
Using double pixel size prevented 1px brushes D2044 by @jeske
This commit is contained in:
parent
68d1348ca2
commit
c5b2f12b36
Notes:
blender-bot
2023-02-14 07:52:42 +01:00
Referenced by commit8bc6f8bf20
, Fix T48812: Brush size invalid with HIDPI Referenced by commitdda96e3472
, Fix T48807: Each stroke halves brush size Referenced by issue #48456, OSX retina - image paint brush paints 2x wider than brush setting, cant paint 1px
|
@ -852,7 +852,7 @@ int BKE_brush_size_get(const Scene *scene, const Brush *brush)
|
|||
UnifiedPaintSettings *ups = &scene->toolsettings->unified_paint_settings;
|
||||
int size = (ups->flag & UNIFIED_PAINT_SIZE) ? ups->size : brush->size;
|
||||
|
||||
return (int)((float)size * U.pixelsize);
|
||||
return size;
|
||||
}
|
||||
|
||||
int BKE_brush_use_locked_size(const Scene *scene, const Brush *brush)
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue