diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-06-02 18:07:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-06-02 18:11:12 +0300 |
commit | c5b2f12b36a048ffe7c78f42ffeed1e190ad8d1d (patch) | |
tree | 7b05c27452b7200984ee1f836638e6e030e0a45d /source/blender/blenkernel/intern | |
parent | 68d1348ca2f4ae7fcd6eff5b7bdbd84d75988ae8 (diff) |
Fix T48456: 2x pixel size clamps min brush size
Using double pixel size prevented 1px brushes
D2044 by @jeske
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 31dac038e43..da7863096e3 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -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) |