diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-06-24 20:27:09 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-06-26 18:20:12 +0300 |
commit | 06e24f6c9140489543859cbdae5aae6e98b74221 (patch) | |
tree | fd387ad9170763ddd8c20dd311e239dcca0b341d | |
parent | 4817426b3e65aaa7189461f86b73131d0ef9599e (diff) |
Fix sample color operator not updating the color in the UI
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D8110
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |