diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-06 07:47:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-06 07:47:42 +0400 |
commit | afb4b1e50ed405b2baedecfd22c4b4390d897ecf (patch) | |
tree | 93661c540c52b5f510cb5efc1156b3491bbe9645 /io_mesh_stl | |
parent | 150f76ea3bf25734f42a2a60d2a170193481ab09 (diff) |
update for changes in blender
Diffstat (limited to 'io_mesh_stl')
-rw-r--r-- | io_mesh_stl/__init__.py | 2 | ||||
-rw-r--r-- | io_mesh_stl/stl_utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py index 04297d2c..cd1ac79f 100644 --- a/io_mesh_stl/__init__.py +++ b/io_mesh_stl/__init__.py @@ -77,7 +77,7 @@ class StlImporter(bpy.types.Operator): default="") def execute(self, context): - objName = bpy.utils.display_name(self.properties.filepath.split("\\")[-1].split("/")[-1]) + objName = bpy.path.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) diff --git a/io_mesh_stl/stl_utils.py b/io_mesh_stl/stl_utils.py index 34db045c..92723e98 100644 --- a/io_mesh_stl/stl_utils.py +++ b/io_mesh_stl/stl_utils.py @@ -222,7 +222,7 @@ if __name__ == '__main__': filenames = sys.argv[sys.argv.index('--') + 1:] for filename in filenames: - objName = bpy.utils.display_name(filename) + objName = bpy.path.display_name(filename) tris, pts = read_stl(filename) blender_utils.create_and_link_mesh(objName, tris, pts) |