[Bf-blender-cvs] [180a7ac] master: Fix T40775: Clearing material texture slot through Python does not update 3D View render

Sergey Sharybin noreply at git.blender.org
Mon Jul 7 11:39:29 CEST 2014


Commit: 180a7acd41fa984bc22c6becaf9164d1d0f5ab42
Author: Sergey Sharybin
Date:   Mon Jul 7 15:38:40 2014 +0600
https://developer.blender.org/rB180a7acd41fa984bc22c6becaf9164d1d0f5ab42

Fix T40775: Clearing material texture slot through Python does not update 3D View render

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

M	source/blender/makesrna/intern/rna_material.c

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

diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c
index 4ad208d..7ae15b0 100644
--- a/source/blender/makesrna/intern/rna_material.c
+++ b/source/blender/makesrna/intern/rna_material.c
@@ -375,6 +375,7 @@ void rna_mtex_texture_slots_clear(ID *self_id, struct bContext *C, ReportList *r
 		id_us_min((ID *)mtex_ar[index]->tex);
 		MEM_freeN(mtex_ar[index]);
 		mtex_ar[index] = NULL;
+		DAG_id_tag_update(self_id, 0);
 	}
 
 	/* for redraw only */




More information about the Bf-blender-cvs mailing list