Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-01-25 09:09:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-25 09:25:49 +0300
commit05ebdc2b71ab45024467faf40897ebd2707a0d5c (patch)
tree9e4878c93410d6430e76252eccc5a8f760ac9dad /source
parent6cc5c28d15f45aee5c15d2560d9743d824d99ad3 (diff)
Fix texture paint showing pink texture on load
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/material.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index fc03116de20..e8239deddd7 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -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;