From c65a3f2a382c33c9eec21b5e3ab6a4a66c79ed43 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 14 Jan 2011 17:45:54 +0000 Subject: minor updates to STL classes. --- io_mesh_stl/__init__.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'io_mesh_stl/__init__.py') 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 ##### +# + 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 -- cgit v1.2.3