Commit: 05ebdc2b71ab45024467faf40897ebd2707a0d5c
Author: Campbell Barton
Date: Fri Jan 25 17:09:12 2019 +1100
Branches: master
https://developer.blender.org/rB05ebdc2b71ab45024467faf40897ebd2707a0d5c
Fix texture paint showing pink texture on load
===================================================================
M source/blender/blenkernel/intern/material.c
===================================================================
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;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs