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 (e113b402bd).
This commit is contained in:
Dalai Felinto 2018-12-18 16:47:55 -02:00
parent e113b402bd
commit 74b3b81903
Notes: blender-bot 2023-04-14 09:18:04 +02:00
Referenced by issue #58524, Cycles Compute Device only shows "none".
1 changed files with 2 additions and 1 deletions

View 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);
}
}