diff --git a/io_mesh_uv_layout/__init__.py b/io_mesh_uv_layout/__init__.py index 811430dfba54e5dd861c66fd0d98bd2b84e1439c..30dff949f103a17466ecc85b847ededb3d53525d 100644 --- a/io_mesh_uv_layout/__init__.py +++ b/io_mesh_uv_layout/__init__.py @@ -21,7 +21,7 @@ bl_info = { "name": "UV Layout", "author": "Campbell Barton, Matt Ebb", - "version": (1, 1, 2), + "version": (1, 1, 1), "blender": (2, 75, 0), "location": "Image-Window > UVs > Export UV Layout", "description": "Export the UV layout as a 2D graphic", @@ -199,7 +199,7 @@ class ExportUVLayout(bpy.types.Operator): else: mesh = obj.data - func(fw, context, mesh, self.size[0], self.size[1], self.opacity, + func(fw, mesh, self.size[0], self.size[1], self.opacity, lambda: self._face_uv_iter(context, mesh, self.tessellated)) if self.modified: diff --git a/io_mesh_uv_layout/export_uv_eps.py b/io_mesh_uv_layout/export_uv_eps.py index 271ab5ef118e39db0ab4ab0946da45ef6a99ddc1..a15dc2662e4b860a39fc88727b769629e2edebf3 100644 --- a/io_mesh_uv_layout/export_uv_eps.py +++ b/io_mesh_uv_layout/export_uv_eps.py @@ -21,7 +21,7 @@ import bpy -def write(fw, context, mesh, image_width, image_height, opacity, face_iter_func): +def write(fw, mesh, image_width, image_height, opacity, face_iter_func): fw("%!PS-Adobe-3.0 EPSF-3.0\n") fw("%%%%Creator: Blender %s\n" % bpy.app.version_string) fw("%%Pages: 1\n") diff --git a/io_mesh_uv_layout/export_uv_png.py b/io_mesh_uv_layout/export_uv_png.py index c5ba3a3b30423f39a2f9715ce3e89b8acd58e272..5da543ccf49345fff747b79b03d2f1152e96eff9 100644 --- a/io_mesh_uv_layout/export_uv_png.py +++ b/io_mesh_uv_layout/export_uv_png.py @@ -21,7 +21,7 @@ import bpy -def write(fw, context, mesh_source, image_width, image_height, opacity, face_iter_func): +def write(fw, mesh_source, image_width, image_height, opacity, face_iter_func): filepath = fw.__self__.name fw.__self__.close() @@ -133,8 +133,7 @@ def write(fw, context, mesh_source, image_width, image_height, opacity, face_ite scene.update() - data_context = context.copy() - data_context.update((("blend_data", bpy.context.blend_data), ("scene", scene))) + data_context = {"blend_data": bpy.context.blend_data, "scene": scene} bpy.ops.render.render(data_context, write_still=True) # cleanup diff --git a/io_mesh_uv_layout/export_uv_svg.py b/io_mesh_uv_layout/export_uv_svg.py index d23782190e8ecb3974e155cb7329c5af4dffcfca..764f0d341bb7ad1edc65d87796c38688d3c71cf8 100644 --- a/io_mesh_uv_layout/export_uv_svg.py +++ b/io_mesh_uv_layout/export_uv_svg.py @@ -21,7 +21,7 @@ import bpy -def write(fw, context, mesh, image_width, image_height, opacity, face_iter_func): +def write(fw, mesh, image_width, image_height, opacity, face_iter_func): # for making an XML compatible string from xml.sax.saxutils import escape from os.path import basename