Fix texture paint showing pink texture on load
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user