diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-06-27 02:33:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-06-27 02:33:13 +0400 |
commit | 69a384d3ed2608ae6cf064dd33c9293908b955e6 (patch) | |
tree | 4a986acbb69de36bd6517634e986fa8fa7217b4b /io_mesh_stl | |
parent | d35dee7d0ce5719d26c2db1fa2b46b007a58cf60 (diff) |
remove filename and directory from ops that dont need them
Diffstat (limited to 'io_mesh_stl')
-rw-r--r-- | io_mesh_stl/__init__.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py index b80a971e..e5cc22d5 100644 --- a/io_mesh_stl/__init__.py +++ b/io_mesh_stl/__init__.py @@ -62,13 +62,9 @@ class StlImporter(bpy.types.Operator): "the STL file", maxlen=1024, default="") - filename = StringProperty(name="File Name", - description="Name of the file.") - directory = StringProperty(name="Directory", - description="Directory of the file.") def execute(self, context): - objName = bpy.utils.display_name(self.properties.filename) + objName = bpy.utils.display_name(self.properties.filepath.split("\\")[-1].split("/")[-1]) tris, pts = stl_utils.read_stl(self.properties.filepath) blender_utils.create_and_link_mesh(objName, tris, pts) @@ -94,10 +90,6 @@ class StlExporter(bpy.types.Operator): "the active object to STL file", maxlen=1024, default="") - filename = StringProperty(name="File Name", - description="Name of the file.") - directory = StringProperty(name="Directory", - description="Directory of the file.") check_existing = BoolProperty(name="Check Existing", description="Check and warn on " "overwriting existing files", |