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:
authorDalai Felinto <dfelinto@gmail.com>2018-12-18 21:47:55 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-12-18 21:48:03 +0300
commit74b3b819034dc5f51189ea0375ed2408d5691321 (patch)
tree3d36a2ca7adc9ba42006b7868a4cd7d47f47eac7 /source/blender/makesrna/intern/rna_sculpt_paint.c
parente113b402bd57e66bff1604e7275d6b1eb98139ef (diff)
Potential fix for sculpt mask diffuse color drawing update
The sculpt mask diffuse color is not working right now. But when it does it should follow on the fix for the sculpt mask drawing update (e113b402bd57).
Diffstat (limited to 'source/blender/makesrna/intern/rna_sculpt_paint.c')
-rw-r--r--source/blender/makesrna/intern/rna_sculpt_paint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c b/source/blender/makesrna/intern/rna_sculpt_paint.c
index 2720f433cb2..609c602c27e 100644
--- a/source/blender/makesrna/intern/rna_sculpt_paint.c
+++ b/source/blender/makesrna/intern/rna_sculpt_paint.c
@@ -378,7 +378,8 @@ static void rna_Sculpt_ShowDiffuseColor_update(bContext *C, PointerRNA *UNUSED(p
if (ob->sculpt->pbvh)
pbvh_show_diffuse_color_set(ob->sculpt->pbvh, ob->sculpt->show_diffuse_color);
- WM_main_add_notifier(NC_OBJECT | ND_DRAW, ob);
+ DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
+ WM_main_add_notifier(NC_OBJECT | ND_MODIFIER, ob);
}
}