diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-02-05 20:14:05 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-02-05 20:14:05 +0300 |
commit | a1ec1b3974e81108f5d017d0a1fdcede7419ee99 (patch) | |
tree | 22830762d177bb0f7dd143edf68a3802a5beb27d /source | |
parent | 15ff730b9b1d99f7b11a69628d9489546986e145 (diff) |
Fix part of T43556 brush increase/decrease size operators do not update
the UI sliders.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_ops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_ops.c b/source/blender/editors/sculpt_paint/paint_ops.c index ea5f77acc5b..46d7b47adec 100644 --- a/source/blender/editors/sculpt_paint/paint_ops.c +++ b/source/blender/editors/sculpt_paint/paint_ops.c @@ -114,7 +114,7 @@ static int brush_scale_size_exec(bContext *C, wmOperator *op) size--; } } - CLAMP(size, 1, 2000); // XXX magic number + CLAMP(size, 1, MAX_BRUSH_PIXEL_RADIUS); // XXX magic number, same as max for RNA BKE_brush_size_set(scene, brush, size); } @@ -128,6 +128,8 @@ static int brush_scale_size_exec(bContext *C, wmOperator *op) BKE_brush_unprojected_radius_set(scene, brush, unprojected_radius); } + + WM_main_add_notifier(NC_BRUSH | NA_EDITED, brush); } return OPERATOR_FINISHED; |