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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-31 21:31:43 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-31 21:33:38 +0300
commit27d799698d5af604c87e792c519df463cd6c33ff (patch)
treeacb7aff820fcbceb344219f05eb4681198a42c14 /source/blender
parent92fa42f2ce08f090d251ef9fadd0e0b7128e32a5 (diff)
Fix T61065: missing shader update when adding texture slot.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_proj.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index 5c0efa911c4..d05903738d4 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -6026,13 +6026,15 @@ 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, ID_RECALC_SHADING);
- ED_area_tag_redraw(CTX_wm_area(C));
+ }
- BKE_paint_proj_mesh_data_check(scene, ob, NULL, NULL, NULL, NULL);
+ DEG_id_tag_update(&ntree->id, 0);
+ DEG_id_tag_update(&ma->id, ID_RECALC_SHADING);
+ ED_area_tag_redraw(CTX_wm_area(C));
- return true;
- }
+ BKE_paint_proj_mesh_data_check(scene, ob, NULL, NULL, NULL, NULL);
+
+ return true;
}
return false;