From da1323d1c95095feff98e8aa054d73fd323c363d Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 28 Feb 2019 14:09:19 +0100 Subject: Fix T60366: texture paint slots not updating when editing material. Now always refresh when the material changes. Depsgraph tag moved out of the refresh function since that gets called on depsgraph update, which should not trigger a second depsgraph update. --- source/blender/blenkernel/BKE_material.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/BKE_material.h') diff --git a/source/blender/blenkernel/BKE_material.h b/source/blender/blenkernel/BKE_material.h index 1c171ef6e7c..84760a522f3 100644 --- a/source/blender/blenkernel/BKE_material.h +++ b/source/blender/blenkernel/BKE_material.h @@ -83,8 +83,8 @@ bool BKE_object_material_slot_remove(struct Main *bmain, struct Object *ob); struct MaterialGPencilStyle *BKE_material_gpencil_settings_get(struct Object *ob, short act); -void BKE_texpaint_slot_refresh_cache(struct Scene *scene, struct Material *ma); -void BKE_texpaint_slots_refresh_object(struct Scene *scene, struct Object *ob); +void BKE_texpaint_slot_refresh_cache(struct Material *ma); +void BKE_texpaint_slots_refresh_object(struct Object *ob); /* rna api */ void BKE_material_resize_id(struct Main *bmain, struct ID *id, short totcol, bool do_id_user); -- cgit v1.2.3