diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-06-24 20:19:44 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-06-26 18:18:10 +0300 |
commit | 4817426b3e65aaa7189461f86b73131d0ef9599e (patch) | |
tree | 374da6e4568cdb6135caa39c89833c96112527de /source/blender/editors/sculpt_paint/sculpt_filter_color.c | |
parent | 0c98bb75cb1b46206e4ff52df398ea8865f47297 (diff) |
Fix Color Filter not updating during modal operator
The code for tagging the updates was wrong
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D8109
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_filter_color.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_filter_color.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_color.c b/source/blender/editors/sculpt_paint/sculpt_filter_color.c index 77fbe42a984..b78f027fa9c 100644 --- a/source/blender/editors/sculpt_paint/sculpt_filter_color.c +++ b/source/blender/editors/sculpt_paint/sculpt_filter_color.c @@ -205,7 +205,6 @@ static void color_filter_task_cb(void *__restrict userdata, static int sculpt_color_filter_modal(bContext *C, wmOperator *op, const wmEvent *event) { - ARegion *ar = CTX_wm_region(C); Object *ob = CTX_data_active_object(C); SculptSession *ss = ob->sculpt; Sculpt *sd = CTX_data_tool_settings(C)->sculpt; @@ -241,8 +240,7 @@ static int sculpt_color_filter_modal(bContext *C, wmOperator *op, const wmEvent &settings, (sd->flags & SCULPT_USE_OPENMP), ss->filter_cache->totnode); BLI_task_parallel_range(0, ss->filter_cache->totnode, &data, color_filter_task_cb, &settings); - ED_region_tag_redraw(ar); - WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob); + SCULPT_flush_update_step(C, SCULPT_UPDATE_COLOR); return OPERATOR_RUNNING_MODAL; } |