diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2020-07-27 17:10:19 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2020-07-28 12:52:38 +0300 |
commit | e296c9e24e7e029cbd537251d40e3ea19b54c049 (patch) | |
tree | 1746bc8387006ad75e608fd024e70715811839e1 | |
parent | 290b372aac9e3b400b72bb1b9686431aad870dca (diff) |
Fix T79031: Batch Generate-Previews doesn't work anymore
Caused by rB19785b96c43f.
Maniphest Tasks: T79031
Differential Revision: https://developer.blender.org/D8400
-rw-r--r-- | release/scripts/modules/bl_previews_utils/bl_previews_render.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/bl_previews_utils/bl_previews_render.py b/release/scripts/modules/bl_previews_utils/bl_previews_render.py index 73004cee731..bcb2fe8324d 100644 --- a/release/scripts/modules/bl_previews_utils/bl_previews_render.py +++ b/release/scripts/modules/bl_previews_utils/bl_previews_render.py @@ -314,7 +314,7 @@ def do_previews(do_objects, do_collections, do_scenes, do_data_intern): do_save = True if do_data_intern: - bpy.ops.wm.previews_clear(id_type='SHADING') + bpy.ops.wm.previews_clear(id_type={'SHADING'}) bpy.ops.wm.previews_ensure() render_contexts = {} @@ -439,7 +439,7 @@ def do_previews(do_objects, do_collections, do_scenes, do_data_intern): def do_clear_previews(do_objects, do_collections, do_scenes, do_data_intern): if do_data_intern: - bpy.ops.wm.previews_clear(id_type='SHADING') + bpy.ops.wm.previews_clear(id_type={'SHADING'}) if do_objects: for ob in ids_nolib(bpy.data.objects): |