From a926a2b9838fc604d4dac07f9f3a79154fdc7763 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Wed, 24 Aug 2011 13:14:30 +0000 Subject: [PATCH] minor syntax change to addon headers --- io_anim_bvh/__init__.py | 4 ++-- io_mesh_stl/__init__.py | 27 ++++++++++++++------------- io_mesh_uv_layout/__init__.py | 6 +++--- io_scene_3ds/__init__.py | 8 ++++---- io_scene_fbx/__init__.py | 8 ++++---- io_scene_map/__init__.py | 8 ++++---- io_scene_obj/__init__.py | 8 ++++---- io_scene_x3d/__init__.py | 4 ++-- io_shape_mdd/__init__.py | 4 ++-- object_grease_scatter.py | 12 ++++++------ 10 files changed, 45 insertions(+), 44 deletions(-) diff --git a/io_anim_bvh/__init__.py b/io_anim_bvh/__init__.py index b06eb58a6..383d3bb9f 100644 --- a/io_anim_bvh/__init__.py +++ b/io_anim_bvh/__init__.py @@ -26,8 +26,8 @@ bl_info = { "location": "File > Import-Export", "description": "Import-Export BVH from armature objects", "warning": "", - "wiki_url": ("http://wiki.blender.org/index.php/Extensions:2.5/Py/" - "Scripts/Import-Export/MotionCapture_BVH"), + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/" + "Scripts/Import-Export/MotionCapture_BVH", "tracker_url": "", "support": 'OFFICIAL', "category": "Import-Export"} diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py index e97880135..a46693210 100644 --- a/io_mesh_stl/__init__.py +++ b/io_mesh_stl/__init__.py @@ -27,10 +27,10 @@ bl_info = { "location": "File > Import-Export > Stl", "description": "Import-Export STL files", "warning": "", - "wiki_url": ("http://wiki.blender.org/index.php/Extensions:2.5/Py/" - "Scripts/Import-Export/STL"), + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/" + "Scripts/Import-Export/STL", "tracker_url": "https://projects.blender.org/tracker/index.php?" - "func=detail&aid=22837", + "func=detail&aid=22837", "support": 'OFFICIAL', "category": "Import-Export"} @@ -70,15 +70,17 @@ class ImportSTL(bpy.types.Operator, ImportHelper): filename_ext = ".stl" - filter_glob = StringProperty(default="*.stl", options={'HIDDEN'}) - - files = CollectionProperty(name="File Path", - description="File path used for importing " - "the STL file", - type=bpy.types.OperatorFileListElement) - - directory = StringProperty(subtype='DIR_PATH') - + filter_glob = StringProperty( + default="*.stl", + options={'HIDDEN'}, + ) + files = CollectionProperty( + name="File Path", + type=bpy.types.OperatorFileListElement, + ) + directory = StringProperty( + subtype='DIR_PATH', + ) def execute(self, context): from . import stl_utils from . import blender_utils @@ -98,7 +100,6 @@ class ImportSTL(bpy.types.Operator, ImportHelper): for path in paths: objName = bpy.path.display_name(os.path.basename(path)) tris, pts = stl_utils.read_stl(path) - blender_utils.create_and_link_mesh(objName, tris, pts) return {'FINISHED'} diff --git a/io_mesh_uv_layout/__init__.py b/io_mesh_uv_layout/__init__.py index e7cf81ffd..ac650976b 100644 --- a/io_mesh_uv_layout/__init__.py +++ b/io_mesh_uv_layout/__init__.py @@ -27,10 +27,10 @@ bl_info = { "location": "Image-Window > UVs > Export UV Layout", "description": "Export the UV layout as a 2D graphic", "warning": "", - "wiki_url": ("http://wiki.blender.org/index.php/Extensions:2.5/Py/" - "Scripts/Import-Export/UV_Layout"), + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/" + "Scripts/Import-Export/UV_Layout", "tracker_url": "https://projects.blender.org/tracker/index.php?" - "func=detail&aid=22837", + "func=detail&aid=22837", "support": 'OFFICIAL', "category": "Import-Export"} diff --git a/io_scene_3ds/__init__.py b/io_scene_3ds/__init__.py index ef3ad111a..54015cc18 100644 --- a/io_scene_3ds/__init__.py +++ b/io_scene_3ds/__init__.py @@ -24,11 +24,11 @@ bl_info = { "blender": (2, 5, 7), "api": 35622, "location": "File > Import-Export", - "description": ("Import-Export 3DS, meshes, uvs, materials, textures, " - "cameras & lamps"), + "description": "Import-Export 3DS, meshes, uvs, materials, textures, " + "cameras & lamps", "warning": "", - "wiki_url": ("http://wiki.blender.org/index.php/Extensions:2.5/Py/" - "Scripts/Import-Export/Autodesk_3DS"), + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/" + "Scripts/Import-Export/Autodesk_3DS", "tracker_url": "", "support": 'OFFICIAL', "category": "Import-Export"} diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index 724001e50..30f10c02c 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -24,11 +24,11 @@ bl_info = { "blender": (2, 5, 8), "api": 38691, "location": "File > Import-Export", - "description": ("Export FBX meshes, UV's, vertex colors, materials, " - "textures, cameras, lamps and actions"), + "description": "Export FBX meshes, UV's, vertex colors, materials, " + "textures, cameras, lamps and actions", "warning": "", - "wiki_url": ("http://wiki.blender.org/index.php/Extensions:2.5/Py/" - "Scripts/Import-Export/Autodesk_FBX"), + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/" + "Scripts/Import-Export/Autodesk_FBX", "tracker_url": "", "support": 'OFFICIAL', "category": "Import-Export"} diff --git a/io_scene_map/__init__.py b/io_scene_map/__init__.py index 77e85d5f3..695d48f09 100644 --- a/io_scene_map/__init__.py +++ b/io_scene_map/__init__.py @@ -24,11 +24,11 @@ bl_info = { "blender": (2, 5, 7), "api": 35622, "location": "File > Export", - "description": ("Export MAP brushes, nurbs surfaces, " - "lamps and empties as map nodes"), + "description": "Export MAP brushes, nurbs surfaces, " + "lamps and empties as map nodes", "warning": "", - "wiki_url": ("http://wiki.blender.org/index.php/Extensions:2.5/Py/" - "Scripts/Import-Export/Quake_MAP"), + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/" + "Scripts/Import-Export/Quake_MAP", "tracker_url": "", "support": 'OFFICIAL', "category": "Import-Export"} diff --git a/io_scene_obj/__init__.py b/io_scene_obj/__init__.py index 20216df30..55a11b6bc 100644 --- a/io_scene_obj/__init__.py +++ b/io_scene_obj/__init__.py @@ -24,11 +24,11 @@ bl_info = { "blender": (2, 5, 8), "api": 35622, "location": "File > Import-Export", - "description": ("Import-Export OBJ, Import OBJ mesh, UV's, " - "materials and textures"), + "description": "Import-Export OBJ, Import OBJ mesh, UV's, " + "materials and textures", "warning": "", - "wiki_url": ("http://wiki.blender.org/index.php/Extensions:2.5/Py/" - "Scripts/Import-Export/Wavefront_OBJ"), + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/" + "Scripts/Import-Export/Wavefront_OBJ", "tracker_url": "", "support": 'OFFICIAL', "category": "Import-Export"} diff --git a/io_scene_x3d/__init__.py b/io_scene_x3d/__init__.py index 6e97ce2ea..05c7a6af8 100644 --- a/io_scene_x3d/__init__.py +++ b/io_scene_x3d/__init__.py @@ -26,8 +26,8 @@ bl_info = { "location": "File > Import-Export", "description": "Import-Export X3D, Import VRML", "warning": "", - "wiki_url": ("http://wiki.blender.org/index.php/Extensions:2.5/Py/" - "Scripts/Import-Export/Web3D"), + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/" + "Scripts/Import-Export/Web3D", "tracker_url": "", "support": 'OFFICIAL', "category": "Import-Export"} diff --git a/io_shape_mdd/__init__.py b/io_shape_mdd/__init__.py index ff8d7308c..e7eea70a1 100644 --- a/io_shape_mdd/__init__.py +++ b/io_shape_mdd/__init__.py @@ -26,8 +26,8 @@ bl_info = { "location": "File > Import-Export", "description": "Import-Export MDD as mesh shape keys", "warning": "", - "wiki_url": ("http://wiki.blender.org/index.php/Extensions:2.5/Py/" - "Scripts/Import-Export/NewTek_OBJ"), + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/" + "Scripts/Import-Export/NewTek_OBJ", "tracker_url": "", "support": 'OFFICIAL', "category": "Import-Export"} diff --git a/object_grease_scatter.py b/object_grease_scatter.py index 7bacbefd1..71d06584a 100644 --- a/object_grease_scatter.py +++ b/object_grease_scatter.py @@ -27,13 +27,13 @@ bl_info = { "blender": (2, 5, 8), "api": 36079, "location": "3D View, Add Mesh", - "description": ("Scatter a group of objects onto the active mesh using " - "the grease pencil lines"), + "description": "Scatter a group of objects onto the active mesh using " + "the grease pencil lines", "warning": "", - "wiki_url": ("http://wiki.blender.org/index.php/Extensions:2.5/Py/" - "Scripts/Object/Grease_Scatter"), - "tracker_url": ("https://projects.blender.org/tracker/index.php?" - "func=detail&aid=TODO"), + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/" + "Scripts/Object/Grease_Scatter", + "tracker_url": "https://projects.blender.org/tracker/index.php?" + "func=detail&aid=TODO", "support": 'OFFICIAL', "category": "Object"} -- GitLab