Fix texture paint showing pink texture on load
This commit is contained in:
parent
6cc5c28d15
commit
05ebdc2b71
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue