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/editors/util/ed_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/util/ed_util.c') diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c index 6f0c8594446..ea99dd9996e 100644 --- a/source/blender/editors/util/ed_util.c +++ b/source/blender/editors/util/ed_util.c @@ -90,7 +90,7 @@ void ED_editors_init_for_undo(Main *bmain) if (ob->mode & OB_MODE_TEXTURE_PAINT) { Scene *scene = WM_window_get_active_scene(win); - BKE_texpaint_slots_refresh_object(scene, ob); + BKE_texpaint_slots_refresh_object(ob); BKE_paint_proj_mesh_data_check(scene, ob, NULL, NULL, NULL, NULL); } } -- cgit v1.2.3