diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-02-28 16:09:19 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-02-28 21:17:16 +0300 |
commit | da1323d1c95095feff98e8aa054d73fd323c363d (patch) | |
tree | 021ec89b4a50696ba8b6ae02df82f278354812cf /source/blender/editors/util | |
parent | acd462347196fef9450115f28ac2594cb12b0226 (diff) |
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.
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r-- | source/blender/editors/util/ed_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |