[Bf-blender-cvs] [dda96e3] master: Fix T48807: Each stroke halves brush size
Campbell Barton
noreply at git.blender.org
Fri Jul 8 06:50:57 CEST 2016
Commit: dda96e34725a3e12b83696db311dde10e1126cd6
Author: Campbell Barton
Date: Fri Jul 8 14:51:12 2016 +1000
Branches: master
https://developer.blender.org/rBdda96e34725a3e12b83696db311dde10e1126cd6
Fix T48807: Each stroke halves brush size
Missed from c5b2f12b
===================================================================
M source/blender/blenkernel/intern/brush.c
===================================================================
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index 4a5be1d..6d8dbcc 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -816,9 +816,7 @@ void BKE_brush_color_set(struct Scene *scene, struct Brush *brush, const float c
void BKE_brush_size_set(Scene *scene, Brush *brush, int size)
{
UnifiedPaintSettings *ups = &scene->toolsettings->unified_paint_settings;
-
- size = (int)((float)size / U.pixelsize);
-
+
/* make sure range is sane */
CLAMP(size, 1, MAX_BRUSH_PIXEL_RADIUS);
More information about the Bf-blender-cvs
mailing list