From a1ec1b3974e81108f5d017d0a1fdcede7419ee99 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Thu, 5 Feb 2015 18:14:05 +0100 Subject: Fix part of T43556 brush increase/decrease size operators do not update the UI sliders. --- source/blender/editors/sculpt_paint/paint_ops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/sculpt_paint/paint_ops.c') 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; -- cgit v1.2.3