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>2010-06-27 02:33:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-06-27 02:33:13 +0400
commit69a384d3ed2608ae6cf064dd33c9293908b955e6 (patch)
tree4a986acbb69de36bd6517634e986fa8fa7217b4b /io_mesh_stl/__init__.py
parentd35dee7d0ce5719d26c2db1fa2b46b007a58cf60 (diff)
remove filename and directory from ops that dont need them
Diffstat (limited to 'io_mesh_stl/__init__.py')
-rw-r--r--io_mesh_stl/__init__.py10
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",