Commit: 1448082ba352d178c3ffc5ac8e791ea88fd9a8bc
Author: Antony Riakiotakis
Date: Tue Sep 2 18:57:10 2014 +0200
Branches: master
https://developer.blender.org/rB1448082ba352d178c3ffc5ac8e791ea88fd9a8bc
Add missing update tag to material when adding texture slots.
===================================================================
M source/blender/editors/sculpt_paint/paint_image_proj.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c
b/source/blender/editors/sculpt_paint/paint_image_proj.c
index bdacfd2..56bb8af 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));
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs