diff options
Diffstat (limited to 'io_mesh_stl')
-rw-r--r-- | io_mesh_stl/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py index 2572e409..38ef0535 100644 --- a/io_mesh_stl/__init__.py +++ b/io_mesh_stl/__init__.py @@ -133,7 +133,7 @@ def menu_import(self, context): def menu_export(self, context): - default_path = bpy.data.filename.replace(".blend", ".stl") + default_path = bpy.data.filepath.replace(".blend", ".stl") self.layout.operator(StlExporter.bl_idname, text="Stl (.stl)").path = default_path |