From f780bfafcfa988d1415f5758ceebbe1b4aee9ba7 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Wed, 14 Oct 2020 01:54:46 +0200 Subject: Fix missing Sculpt Overlays updates when using modifiers Now that sculpt mask and face sets can also be drawn without using the PBVH, these operators need these extra updates when the data changes. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8956 --- source/blender/editors/sculpt_paint/sculpt_intern.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/sculpt_paint/sculpt_intern.h') diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.h b/source/blender/editors/sculpt_paint/sculpt_intern.h index f03a9631b0c..4216f23bea4 100644 --- a/source/blender/editors/sculpt_paint/sculpt_intern.h +++ b/source/blender/editors/sculpt_paint/sculpt_intern.h @@ -66,6 +66,9 @@ void SCULPT_flush_update_step(bContext *C, SculptUpdateType update_flags); void SCULPT_flush_update_done(const bContext *C, Object *ob, SculptUpdateType update_flags); void SCULPT_flush_stroke_deform(struct Sculpt *sd, Object *ob, bool is_proxy_used); +/* Should be used after modifying the mask or Face Sets IDs. */ +void SCULPT_tag_update_overlays(bContext *C); + /* Stroke */ typedef struct SculptCursorGeometryInfo { -- cgit v1.2.3