diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-14 15:59:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-14 15:59:08 +0400 |
commit | 475c45e4b1c3052885c222bd42afd4d78343b74a (patch) | |
tree | c848b5b644796ccbedd2e06b1b911d3bccac5719 /io_mesh_raw | |
parent | d20a38c4069ff1896b20eb3cef83cfab77e862ca (diff) |
bugfix [#22843] Cannot export to folder with ".blend" on the end.
Diffstat (limited to 'io_mesh_raw')
-rw-r--r-- | io_mesh_raw/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_mesh_raw/__init__.py b/io_mesh_raw/__init__.py index 8a1569bc..1af09c9f 100644 --- a/io_mesh_raw/__init__.py +++ b/io_mesh_raw/__init__.py @@ -40,7 +40,8 @@ def menu_import(self, context): def menu_export(self, context): from io_mesh_raw import export_raw - default_path = bpy.data.filepath.replace(".blend", ".raw") + import os + default_path = os.path.splitext(bpy.data.filepath)[0] + ".raw" self.layout.operator(export_raw.RawExporter.bl_idname, text="Raw Faces (.raw)").filepath = default_path |