From f5e765036da06edfa5b080b8a3395071e1b7ea75 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Sun, 5 Feb 2012 09:40:34 +0000 Subject: [PATCH] Code Cleanup: pep8 --- io_scene_x3d/__init__.py | 7 ++++--- io_scene_x3d/export_x3d.py | 6 ++---- space_view3d_copy_attributes.py | 3 ++- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/io_scene_x3d/__init__.py b/io_scene_x3d/__init__.py index 3a102e141..5a7429f91 100644 --- a/io_scene_x3d/__init__.py +++ b/io_scene_x3d/__init__.py @@ -136,7 +136,8 @@ class ExportX3D(bpy.types.Operator, ExportHelper): ) name_decorations = BoolProperty( name="Name decorations", - description="Add prefixes to the names of exported nodes to indicate their type", + description=("Add prefixes to the names of exported nodes to " + "indicate their type"), default=True, ) use_h3d = BoolProperty( @@ -144,7 +145,7 @@ class ExportX3D(bpy.types.Operator, ExportHelper): description="Export shaders for H3D", default=False, ) - + axis_forward = EnumProperty( name="Forward", items=(('X', "X Forward", ""), @@ -156,7 +157,7 @@ class ExportX3D(bpy.types.Operator, ExportHelper): ), default='Z', ) - + axis_up = EnumProperty( name="Up", items=(('X', "X Up", ""), diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index aafe300bd..7c8870f98 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -256,8 +256,6 @@ def export(file, from bpy_extras.io_utils import unique_name from xml.sax.saxutils import quoteattr, escape - - if name_decorations: # If names are decorated, the uuid map can be split up # by type for efficiency of collision testing @@ -280,7 +278,7 @@ def export(file, group_ = 'group_' else: # If names are not decorated, it may be possible for two objects to - # have the same name, so there has to be a unified dictionary to + # have the same name, so there has to be a unified dictionary to # prevent uuid collisions. uuid_cache = {} uuid_cache_object = uuid_cache # object @@ -299,7 +297,7 @@ def export(file, MA_ = '' LA_ = '' group_ = '' - + _TRANSFORM = '_TRANSFORM' # store files to copy diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py index 18b9f518d..4adab0353 100644 --- a/space_view3d_copy_attributes.py +++ b/space_view3d_copy_attributes.py @@ -452,7 +452,8 @@ def obWei(ob, active, context): vgroupIndex_weight[i][1], "REPLACE") return('INFO', "weights copied") -object_copies = ( # ('obj_loc', "Location", +object_copies = ( + #('obj_loc', "Location", #"Copy Location from Active to Selected", obLoc), #('obj_rot', "Rotation", #"Copy Rotation from Active to Selected", obRot), -- GitLab