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-08-24 17:14:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-24 17:14:30 +0400
commita926a2b9838fc604d4dac07f9f3a79154fdc7763 (patch)
treea28e192f523c4985dcd4a482de8520105188f8be /io_mesh_stl
parent8f5fe7f748f924d504f708b89a4f143de1b636cc (diff)
minor syntax change to addon headers
Diffstat (limited to 'io_mesh_stl')
-rw-r--r--io_mesh_stl/__init__.py27
1 files changed, 14 insertions, 13 deletions
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'}