Potential fix for sculpt mask diffuse color drawing update
[blender.git] / source / blender / makesrna / intern / rna_sculpt_paint.c
index 2720f433cb2f2944e7734195e7a2bc805a6ca829..609c602c27eaa5d32850e7041f201faebf98eeea 100644 (file)
@@ -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);
        }
 }