From a926a2b9838fc604d4dac07f9f3a79154fdc7763 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 24 Aug 2011 13:14:30 +0000 Subject: minor syntax change to addon headers --- io_mesh_stl/__init__.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'io_mesh_stl') diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py index e9788013..a4669321 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'} -- cgit v1.2.3