diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-31 14:27:24 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-31 14:27:24 +0400 |
commit | 77774b1f12f94a7dd5ee9b0f21f99cb7780f51be (patch) | |
tree | 9c39437e9a65e5a566d2196f3f438524ad686656 /io_mesh_uv_layout/export_uv_svg.py | |
parent | e1c5b9022d2df9a893dfc03ba6884be80bc91718 (diff) |
formatting edits only
Diffstat (limited to 'io_mesh_uv_layout/export_uv_svg.py')
-rw-r--r-- | io_mesh_uv_layout/export_uv_svg.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/io_mesh_uv_layout/export_uv_svg.py b/io_mesh_uv_layout/export_uv_svg.py index 464211cb..806ee608 100644 --- a/io_mesh_uv_layout/export_uv_svg.py +++ b/io_mesh_uv_layout/export_uv_svg.py @@ -16,7 +16,7 @@ # # ##### END GPL LICENSE BLOCK ##### -# <pep8 compliant> +# <pep8-80 compliant> import bpy @@ -29,9 +29,11 @@ def write(fw, mesh, image_width, image_height, opacity, face_iter_func): fw('<?xml version="1.0" standalone="no"?>\n') fw('<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" \n') fw(' "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n') - fw('<svg width="%dpx" height="%dpx" viewBox="0px 0px %dpx %dpx"\n' % (image_width, image_height, image_width, image_height)) + fw('<svg width="%dpx" height="%dpx" viewBox="0px 0px %dpx %dpx"\n' % + (image_width, image_height, image_width, image_height)) fw(' xmlns="http://www.w3.org/2000/svg" version="1.1">\n') - desc = "%r, %s, (Blender %s)" % (basename(bpy.data.filepath), mesh.name, bpy.app.version_string) + desc = ("%r, %s, (Blender %s)" % + (basename(bpy.data.filepath), mesh.name, bpy.app.version_string)) fw('<desc>%s</desc>\n' % escape(desc)) # svg colors @@ -39,7 +41,9 @@ def write(fw, mesh, image_width, image_height, opacity, face_iter_func): fill_default = 'fill="grey"' for mat in mesh.materials if mesh.materials else [None]: if mat: - fill_settings.append('fill="rgb(%d, %d, %d)"' % tuple(int(c * 255) for c in mat.diffuse_color)) + fill_settings.append('fill="rgb(%d, %d, %d)"' % + tuple(int(c * 255) + for c in mat.diffuse_color)) else: fill_settings.append(fill_default) |