[Bf-blender-cvs] [d710a86] soc-2013-paint: Add dependency update to images. Does nice update to material and image icons for layer panels.

Antony Riakiotakis noreply at git.blender.org
Tue Apr 22 18:04:13 CEST 2014


Commit: d710a86cb78fdf24de6c744fec7b7b475c000f0e
Author: Antony Riakiotakis
Date:   Tue Apr 22 19:04:04 2014 +0300
https://developer.blender.org/rBd710a86cb78fdf24de6c744fec7b7b475c000f0e

Add dependency update to images. Does nice update to material and image
icons for layer panels.

===================================================================

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 71047a8..68a1898 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -3509,6 +3509,7 @@ static void project_paint_end(ProjPaintState *ps)
 	/* dereference used image buffers */
 	for (a = 0, projIma = ps->projImages; a < ps->image_tot; a++, projIma++) {
 		BKE_image_release_ibuf(projIma->ima, projIma->ibuf, NULL);
+		DAG_id_tag_update(&projIma->ima->id, 0);
 	}
 
 	BKE_image_release_ibuf(ps->reproject_image, ps->reproject_ibuf, NULL);




More information about the Bf-blender-cvs mailing list