diff options
author | Thomas Dinges <blender@dingto.org> | 2010-09-11 03:40:32 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2010-09-11 03:40:32 +0400 |
commit | 46a2c6aa73b15b83f08356288e521647f2c3dbce (patch) | |
tree | 1b924a41c142443874cb658ffe5545b8f09ec22b /io_mesh_stl | |
parent | 135017985179ea98e618a4648ac5fee7f45026da (diff) |
Patch [#23759] more replace self.properties.foo --> self.foo for bf-extensions/trunk/py/scripts
by Filiciss Muhgue (filiciss). Thanks a lot!
Part 2: Extensions
Diffstat (limited to 'io_mesh_stl')
-rw-r--r-- | io_mesh_stl/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py index 96e8fc32..40f8a363 100644 --- a/io_mesh_stl/__init__.py +++ b/io_mesh_stl/__init__.py @@ -80,7 +80,7 @@ class StlImporter(bpy.types.Operator): directory = StringProperty() def execute(self, context): - paths = (os.path.join(self.properties.directory, name.name) for name in self.properties.files) + paths = (os.path.join(self.directory, name.name) for name in self.files) for path in paths: objName = bpy.path.display_name(path.split("\\")[-1].split("/")[-1]) @@ -125,10 +125,10 @@ class StlExporter(bpy.types.Operator): def execute(self, context): faces = itertools.chain.from_iterable( - blender_utils.faces_from_mesh(ob, self.properties.apply_modifiers) + blender_utils.faces_from_mesh(ob, self.apply_modifiers) for ob in context.selected_objects) - stl_utils.write_stl(self.properties.filepath, faces, self.properties.ascii) + stl_utils.write_stl(self.filepath, faces, self.ascii) return {'FINISHED'} |