Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-12-31 14:27:24 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-31 14:27:24 +0400
commit77774b1f12f94a7dd5ee9b0f21f99cb7780f51be (patch)
tree9c39437e9a65e5a566d2196f3f438524ad686656 /io_mesh_uv_layout/export_uv_eps.py
parente1c5b9022d2df9a893dfc03ba6884be80bc91718 (diff)
formatting edits only
Diffstat (limited to 'io_mesh_uv_layout/export_uv_eps.py')
-rw-r--r--io_mesh_uv_layout/export_uv_eps.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/io_mesh_uv_layout/export_uv_eps.py b/io_mesh_uv_layout/export_uv_eps.py
index df75cf73..bf136c9c 100644
--- a/io_mesh_uv_layout/export_uv_eps.py
+++ b/io_mesh_uv_layout/export_uv_eps.py
@@ -16,7 +16,7 @@
#
# ##### END GPL LICENSE BLOCK #####
-# <pep8 compliant>
+# <pep8-80 compliant>
import bpy
@@ -27,7 +27,8 @@ def write(fw, mesh, image_width, image_height, opacity, face_iter_func):
fw("%%Pages: 1\n")
fw("%%Orientation: Portrait\n")
fw("%%%%BoundingBox: 0 0 %d %d\n" % (image_width, image_height))
- fw("%%%%HiResBoundingBox: 0.0 0.0 %.4f %.4f\n" % (image_width, image_height))
+ fw("%%%%HiResBoundingBox: 0.0 0.0 %.4f %.4f\n" %
+ (image_width, image_height))
fw("%%EndComments\n")
fw("%%Page: 1 1\n")
fw("0 0 translate\n")
@@ -45,7 +46,8 @@ def write(fw, mesh, image_width, image_height, opacity, face_iter_func):
fw("/DRAW_%d {" % i)
fw("gsave\n")
if mat:
- color = tuple((1.0 - ((1.0 - c) * opacity)) for c in mat.diffuse_color)
+ color = tuple((1.0 - ((1.0 - c) * opacity))
+ for c in mat.diffuse_color)
else:
color = 1.0, 1.0, 1.0
fw("%.3g %.3g %.3g setrgbcolor\n" % color)