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-14 07:53:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-06-14 07:53:45 +0400
commit2246e5b59719500a8d15cdd17fa81c7c104ec28a (patch)
treee1a80d84900bbc7db7d46564e8fa870a1fd41c79 /io_mesh_stl
parent248b8c9a94710a4cf9d378c835a474ed57f7da82 (diff)
update for changes in trunk
Diffstat (limited to 'io_mesh_stl')
-rw-r--r--io_mesh_stl/__init__.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py
index 38ef0535..b80a971e 100644
--- a/io_mesh_stl/__init__.py
+++ b/io_mesh_stl/__init__.py
@@ -57,7 +57,7 @@ class StlImporter(bpy.types.Operator):
bl_idname = "import_mesh.stl"
bl_label = "Import STL"
- path = StringProperty(name="File Path",
+ filepath = StringProperty(name="File Path",
description="File path used for importing "
"the STL file",
maxlen=1024,
@@ -69,7 +69,7 @@ class StlImporter(bpy.types.Operator):
def execute(self, context):
objName = bpy.utils.display_name(self.properties.filename)
- tris, pts = stl_utils.read_stl(self.properties.path)
+ tris, pts = stl_utils.read_stl(self.properties.filepath)
blender_utils.create_and_link_mesh(objName, tris, pts)
@@ -89,7 +89,7 @@ class StlExporter(bpy.types.Operator):
bl_idname = "export_mesh.stl"
bl_label = "Export STL"
- path = StringProperty(name="File Path",
+ filepath = StringProperty(name="File Path",
description="File path used for exporting "
"the active object to STL file",
maxlen=1024,
@@ -117,7 +117,7 @@ class StlExporter(bpy.types.Operator):
faces = blender_utils.faces_from_mesh(ob,
self.properties.apply_modifiers)
- stl_utils.write_stl(self.properties.path, faces, self.properties.ascii)
+ stl_utils.write_stl(self.properties.filepath, faces, self.properties.ascii)
return {'FINISHED'}
@@ -129,13 +129,13 @@ class StlExporter(bpy.types.Operator):
def menu_import(self, context):
self.layout.operator(StlImporter.bl_idname,
- text="Stl (.stl)").path = "*.stl"
+ text="Stl (.stl)").filepath = "*.stl"
def menu_export(self, context):
default_path = bpy.data.filepath.replace(".blend", ".stl")
self.layout.operator(StlExporter.bl_idname,
- text="Stl (.stl)").path = default_path
+ text="Stl (.stl)").filepath = default_path
def register():