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:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-07-07 13:38:40 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-07-07 13:38:40 +0400
commit180a7acd41fa984bc22c6becaf9164d1d0f5ab42 (patch)
tree91102d01c7edda4fda26c26feefac232f54500f6 /source/blender/makesrna/intern
parentaa620b5feddbec7562e428051bdc166221d80f63 (diff)
Fix T40775: Clearing material texture slot through Python does not update 3D View render
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r--source/blender/makesrna/intern/rna_material.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c
index 4ad208dc7f6..7ae15b0b06c 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 */