Fix T40775: Clearing material texture slot through Python does not update 3D View render
This commit is contained in:
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
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue