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

This commit is contained in:
Sergey Sharybin 2014-07-07 15:38:40 +06:00
parent aa620b5fed
commit 180a7acd41
Notes: blender-bot 2023-02-14 10:27:07 +01:00
Referenced by issue #40775, Clearing material texture slot through Python does not update 3D View render
1 changed files with 1 additions and 0 deletions

View File

@ -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 */