diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-08-12 16:34:39 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-08-12 16:34:39 +0300 |
commit | 4c142e59206b8c751c3b80e3632b6c82476a26b3 (patch) | |
tree | 82437aa0df7801c78e640c5a6a25c161ba760b28 /io_mesh_uv_layout/export_uv_png.py | |
parent | 94abe3b97f5c0b1afaa084dc8918464d27689b88 (diff) |
Fix T45746: PNG UV layout export is blank with new depsgraph.
Looks like we need an explicit Scene.update() call here...
Diffstat (limited to 'io_mesh_uv_layout/export_uv_png.py')
-rw-r--r-- | io_mesh_uv_layout/export_uv_png.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/io_mesh_uv_layout/export_uv_png.py b/io_mesh_uv_layout/export_uv_png.py index 1168e335..5da543cc 100644 --- a/io_mesh_uv_layout/export_uv_png.py +++ b/io_mesh_uv_layout/export_uv_png.py @@ -131,6 +131,8 @@ def write(fw, mesh_source, image_width, image_height, opacity, face_iter_func): scene.render.image_settings.file_format = 'PNG' scene.render.filepath = filepath + scene.update() + data_context = {"blend_data": bpy.context.blend_data, "scene": scene} bpy.ops.render.render(data_context, write_still=True) |