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/makesrna/intern/rna_sculpt_paint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesrna/intern/rna_sculpt_paint.c') diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c b/source/blender/makesrna/intern/rna_sculpt_paint.c index ed51129dfc5..c8722005927 100644 --- a/source/blender/makesrna/intern/rna_sculpt_paint.c +++ b/source/blender/makesrna/intern/rna_sculpt_paint.c @@ -455,7 +455,7 @@ static void rna_ImaPaint_mode_update(bContext *C, PointerRNA *UNUSED(ptr)) if (ob && ob->type == OB_MESH) { /* of course we need to invalidate here */ - BKE_texpaint_slots_refresh_object(scene, ob); + BKE_texpaint_slots_refresh_object(ob); /* we assume that changing the current mode will invalidate the uv layers so we need to refresh display */ BKE_paint_proj_mesh_data_check(scene, ob, NULL, NULL, NULL, NULL); -- cgit v1.2.3