diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-25 15:11:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-25 15:11:58 +0300 |
commit | 8e8fb1520c7345adf7cdd0a839aa76578c4f70e9 (patch) | |
tree | 8574f666fa0ef23ef2aafe334756bf70bcdd9b7e /source/blender/editors/sculpt_paint/paint_image_proj.c | |
parent | ea5326df86cba7bb235f623d59cec87bdf9e41b6 (diff) |
Depsgraph: use specific tag to update shading
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image_proj.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_proj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index 80133db906e..ef2999b368f 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -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); |