From 40f78d28a9ab6680b82c84cdf986d652c4127785 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 2 Jun 2010 18:01:30 +0000 Subject: filename --> filepath (changed in trunk/svn) --- io_mesh_stl/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io_mesh_stl/__init__.py') 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 -- cgit v1.2.3