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:
authorAntony Riakiotakis <kalast@gmail.com>2014-09-02 20:57:10 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-09-02 20:57:10 +0400
commit1448082ba352d178c3ffc5ac8e791ea88fd9a8bc (patch)
tree1689c7d2ba80359016c51f553cd126ea3b1915ed /source/blender/editors
parent5f76dea30d2981ce3190af3cc9c67b4563ea71db (diff)
Add missing update tag to material when adding texture slots.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_proj.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index bdacfd23ae0..56bb8af311c 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -4933,6 +4933,7 @@ bool proj_paint_add_slot(bContext *C, Material *ma, wmOperator *op)
BKE_image_signal(ima, NULL, IMA_SIGNAL_USER_NEW_IMAGE);
WM_event_add_notifier(C, NC_TEXTURE | NA_ADDED, mtex->tex);
WM_event_add_notifier(C, NC_IMAGE | NA_ADDED, ima);
+ DAG_id_tag_update(&ma->id, 0);
ED_area_tag_redraw(CTX_wm_area(C));
}