diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-02-17 18:53:29 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-02-17 18:53:29 +0400 |
commit | 0aabcaca2844ce1bc0f702c20c60a7cef53eef44 (patch) | |
tree | 965c2ed324981b6e2c614f63e4806a8241b136fc /source | |
parent | 4529459a07082e714b7f9c222b9a8003939a145b (diff) |
Fix #34285: sculpt/paint radial control F key operators did not adjust brush size
to retina pixel size correctly.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index f43541ec283..9939e6b69ba 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -3391,6 +3391,11 @@ static void radial_control_paint_cursor(bContext *C, int x, int y, void *customd break; } + /* adjust for DPI, like BKE_brush_size_get */ + r1 *= U.pixelsize; + r2 *= U.pixelsize; + tex_radius *= U.pixelsize; + /* Keep cursor in the original place */ x = rc->initial_mouse[0] - ar->winrct.xmin; y = rc->initial_mouse[1] - ar->winrct.ymin; |