Depsgraph: use specific tag to update shading

This commit is contained in:
2019-01-25 23:11:58 +11:00
parent ea5326df86
commit 8e8fb1520c
2 changed files with 2 additions and 2 deletions

View File

@@ -1097,7 +1097,7 @@ void BKE_texpaint_slot_refresh_cache(Scene *scene, Material *ma)
if (!ma)
return;
DEG_id_tag_update(&ma->id, 0);
DEG_id_tag_update(&ma->id, ID_RECALC_SHADING);
if (ma->texpaintslot) {
MEM_freeN(ma->texpaintslot);

View File

@@ -6027,7 +6027,7 @@ static bool proj_paint_add_slot(bContext *C, wmOperator *op)
BKE_texpaint_slot_refresh_cache(scene, ma);
BKE_image_signal(bmain, ima, NULL, IMA_SIGNAL_USER_NEW_IMAGE);
WM_event_add_notifier(C, NC_IMAGE | NA_ADDED, ima);
DEG_id_tag_update(&ma->id, 0);
DEG_id_tag_update(&ma->id, ID_RECALC_SHADING);
ED_area_tag_redraw(CTX_wm_area(C));
BKE_paint_proj_mesh_data_check(scene, ob, NULL, NULL, NULL, NULL);