diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-02-05 21:15:24 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-02-05 21:15:24 +0300 |
commit | d5b1dfa9c6eef4365db1bc51496c71131a8ffa51 (patch) | |
tree | 71a3f974bb60d3bb75854d533473f08578fec511 /source/blender/editors/sculpt_paint/sculpt.c | |
parent | 77698f601021eb557be38945ed74706a325b1c57 (diff) |
More fixes for high DPI:
* Radial operators were completely wrong
* Dynamic topology detail was also using unscaled number
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index dbb29997102..122acf3c941 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -4255,7 +4255,7 @@ static void sculpt_stroke_update_step(bContext *C, struct PaintStroke *UNUSED(st BKE_pbvh_bmesh_detail_size_set(ss->pbvh, (ss->cache->radius / (float)ups->pixel_radius) * - (float)sd->detail_size / 0.4f); + (float)(sd->detail_size * U.pixelsize)/ 0.4f); } if (sculpt_stroke_dynamic_topology(ss, brush)) { |