Fix texture paint showing pink texture on load
authorCampbell Barton <ideasman42@gmail.com>
Fri, 25 Jan 2019 06:09:12 +0000 (17:09 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 25 Jan 2019 06:25:49 +0000 (17:25 +1100)
source/blender/blenkernel/intern/material.c

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