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_anim_camera.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io_anim_camera.py') diff --git a/io_anim_camera.py b/io_anim_camera.py index 4987ec25..3656852e 100644 --- a/io_anim_camera.py +++ b/io_anim_camera.py @@ -145,7 +145,7 @@ class CameraExporter(bpy.types.Operator): def menu_export(self, context): - default_path = bpy.data.filename.replace(".blend", ".py") + default_path = bpy.data.filepath.replace(".blend", ".py") self.layout.operator(CameraExporter.bl_idname, text="Cameras & Markers (.py)").path = default_path -- cgit v1.2.3