From bbeb2132fc8a10a7b697ce30c72f4bbab5da25e0 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Mon, 14 Mar 2011 23:52:13 +0000 Subject: [PATCH] pep8 cleanup --- io_mesh_uv_layout/__init__.py | 1 - io_mesh_uv_layout/export_uv_eps.py | 1 + io_mesh_uv_layout/export_uv_png.py | 1 + io_mesh_uv_layout/export_uv_svg.py | 3 ++- io_scene_fbx/export_fbx.py | 8 ++++---- space_view3d_copy_attributes.py | 2 +- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/io_mesh_uv_layout/__init__.py b/io_mesh_uv_layout/__init__.py index 0c468f04c..ec55d0e57 100644 --- a/io_mesh_uv_layout/__init__.py +++ b/io_mesh_uv_layout/__init__.py @@ -155,7 +155,6 @@ class ExportUVLayout(bpy.types.Operator): from . import export_uv_svg func = export_uv_svg.write - func(fw, mesh, self.size[0], self.size[1], self.opacity, lambda: self._face_uv_iter(context)) if is_editmode: diff --git a/io_mesh_uv_layout/export_uv_eps.py b/io_mesh_uv_layout/export_uv_eps.py index 48a6cb737..df75cf738 100644 --- a/io_mesh_uv_layout/export_uv_eps.py +++ b/io_mesh_uv_layout/export_uv_eps.py @@ -20,6 +20,7 @@ import bpy + 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) diff --git a/io_mesh_uv_layout/export_uv_png.py b/io_mesh_uv_layout/export_uv_png.py index 7a453f5a8..a9e905414 100644 --- a/io_mesh_uv_layout/export_uv_png.py +++ b/io_mesh_uv_layout/export_uv_png.py @@ -20,6 +20,7 @@ import bpy + def write(fw, mesh_source, image_width, image_height, opacity, face_iter_func): filepath = fw.__self__.name fw.__self__.close() diff --git a/io_mesh_uv_layout/export_uv_svg.py b/io_mesh_uv_layout/export_uv_svg.py index 260c49e5c..464211cbb 100644 --- a/io_mesh_uv_layout/export_uv_svg.py +++ b/io_mesh_uv_layout/export_uv_svg.py @@ -20,6 +20,7 @@ import bpy + def write(fw, mesh, image_width, image_height, opacity, face_iter_func): # for making an XML compatible string from xml.sax.saxutils import escape @@ -60,4 +61,4 @@ def write(fw, mesh, image_width, image_height, opacity, face_iter_func): fw('%.3f,%.3f ' % (x * image_width, y * image_height)) fw('" />\n') fw('\n') - fw('</svg>\n') \ No newline at end of file + fw('</svg>\n') diff --git a/io_scene_fbx/export_fbx.py b/io_scene_fbx/export_fbx.py index c6c918696..10bfe536c 100644 --- a/io_scene_fbx/export_fbx.py +++ b/io_scene_fbx/export_fbx.py @@ -1829,7 +1829,7 @@ def save_single(operator, scene, filepath="", tmp_ob_type = ob_type = None # incase no objects are exported, so as not to raise an error -## XXX +## XXX if EXP_ARMATURE: # This is needed so applying modifiers dosnt apply the armature deformation, its also needed @@ -2820,7 +2820,7 @@ Takes: {''') return {'FINISHED'} -def save(operator, context, +def save(operator, context, filepath="", use_selection=True, batch_mode='OFF', @@ -2837,7 +2837,7 @@ def save(operator, context, kwargs_mod["context_objects"] = context.selected_objects else: kwargs_mod["context_objects"] = scene.objects - + return save_single(operator, context.scene, filepath, **kwargs_mod) else: fbxpath = filepath @@ -2879,7 +2879,7 @@ def save(operator, context, # group, so objects update properly, add a dummy scene. scene = bpy.data.scenes.new(name="FBX_Temp") scene.layers = [True] * 20 - # bpy.data.scenes.active = scene # XXX, cant switch + # bpy.data.scenes.active = scene # XXX, cant switch for ob_base in data.objects: scene.objects.link(ob_base) diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py index 49d6e61a1..01379cc78 100644 --- a/space_view3d_copy_attributes.py +++ b/space_view3d_copy_attributes.py @@ -643,7 +643,7 @@ class MESH_OT_CopyFaceSettings(bpy.types.Operator): bl_idname = 'mesh.copy_face_settings' bl_label = "Copy Face Settings" bl_options = {'REGISTER', 'UNDO'} - + mode = bpy.props.StringProperty(name="mode") layer = bpy.props.StringProperty(name="layer") -- GitLab