Fix texture paint showing pink texture on load

This commit is contained in:
Campbell Barton 2019-01-25 17:09:12 +11:00
parent 6cc5c28d15
commit 05ebdc2b71
1 changed files with 2 additions and 0 deletions

View File

@ -1097,6 +1097,8 @@ void BKE_texpaint_slot_refresh_cache(Scene *scene, Material *ma)
if (!ma)
return;
DEG_id_tag_update(&ma->id, 0);
if (ma->texpaintslot) {
MEM_freeN(ma->texpaintslot);
ma->tot_slots = 0;