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-01-14 20:45:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-14 20:45:54 +0300
commitc65a3f2a382c33c9eec21b5e3ab6a4a66c79ed43 (patch)
tree44bd9cbee95aaecf646dfed9efc0df591609efe2 /io_mesh_stl
parentf47802fbfebf98be32534ae8385f0e815694eb52 (diff)
minor updates to STL classes.
Diffstat (limited to 'io_mesh_stl')
-rw-r--r--io_mesh_stl/__init__.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py
index 87750eca..fdf7a1b4 100644
--- a/io_mesh_stl/__init__.py
+++ b/io_mesh_stl/__init__.py
@@ -16,6 +16,8 @@
#
# ##### END GPL LICENSE BLOCK #####
+# <pep8 compliant>
+
bl_info = {
"name": "STL format",
"author": "Guillaume Bouchard (Guillaum)",
@@ -29,6 +31,7 @@ bl_info = {
"Scripts/Import-Export/STL",
"tracker_url": "https://projects.blender.org/tracker/index.php?"
"func=detail&aid=22837",
+ "support": 'OFFICIAL',
"category": "Import-Export"}
# @todo write the wiki page
@@ -62,13 +65,11 @@ from bpy.props import *
from io_utils import ExportHelper, ImportHelper
-class StlImporter(bpy.types.Operator, ImportHelper):
- '''
- Load STL triangle mesh data
- '''
+class ImportSTL(bpy.types.Operator, ImportHelper):
+ '''Load STL triangle mesh data'''
bl_idname = "import_mesh.stl"
bl_label = "Import STL"
-
+
filename_ext = ".stl"
files = CollectionProperty(name="File Path",
@@ -90,7 +91,7 @@ class StlImporter(bpy.types.Operator, ImportHelper):
return {'FINISHED'}
-class StlExporter(bpy.types.Operator, ExportHelper):
+class ExportSTL(bpy.types.Operator, ExportHelper):
'''
Save STL triangle mesh data from the active object
'''
@@ -118,13 +119,13 @@ class StlExporter(bpy.types.Operator, ExportHelper):
def menu_import(self, context):
- self.layout.operator(StlImporter.bl_idname,
+ self.layout.operator(ImportSTL.bl_idname,
text="Stl (.stl)").filepath = "*.stl"
def menu_export(self, context):
default_path = os.path.splitext(bpy.data.filepath)[0] + ".stl"
- self.layout.operator(StlExporter.bl_idname,
+ self.layout.operator(ExportSTL.bl_idname,
text="Stl (.stl)").filepath = default_path