From 06e24f6c9140489543859cbdae5aae6e98b74221 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Wed, 24 Jun 2020 19:27:09 +0200 Subject: Fix sample color operator not updating the color in the UI Reviewed By: sergey Differential Revision: https://developer.blender.org/D8110 --- source/blender/editors/sculpt_paint/sculpt.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/sculpt_paint') diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index d89bb91fb47..63c33d767e4 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -8121,6 +8121,9 @@ static int sculpt_sample_color_invoke(bContext *C, brush->rgb[1] = active_vertex_color[1]; brush->rgb[2] = active_vertex_color[2]; brush->alpha = active_vertex_color[3]; + + WM_event_add_notifier(C, NC_BRUSH | NA_EDITED, brush); + return OPERATOR_FINISHED; } -- cgit v1.2.3