Add missing update tag to material when adding texture slots.

This commit is contained in:
Antony Riakiotakis
2014-09-02 18:57:10 +02:00
parent 5f76dea30d
commit 1448082ba3

View File

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