Commit: 06e24f6c9140489543859cbdae5aae6e98b74221 Author: Pablo Dobarro Date: Wed Jun 24 19:27:09 2020 +0200 Branches: master https://developer.blender.org/rB06e24f6c9140489543859cbdae5aae6e98b74221
Fix sample color operator not updating the color in the UI Reviewed By: sergey Differential Revision: https://developer.blender.org/D8110 =================================================================== M source/blender/editors/sculpt_paint/sculpt.c =================================================================== 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; } _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
