Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2020-06-24 20:27:09 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-06-26 18:20:12 +0300
commit06e24f6c9140489543859cbdae5aae6e98b74221 (patch)
treefd387ad9170763ddd8c20dd311e239dcca0b341d /source/blender/editors/sculpt_paint
parent4817426b3e65aaa7189461f86b73131d0ef9599e (diff)
Fix sample color operator not updating the color in the UI
Reviewed By: sergey Differential Revision: https://developer.blender.org/D8110
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c3
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;
}