bugfix [#22843] Cannot export to folder with ".blend" on the end.

This commit is contained in:
2010-07-14 11:58:19 +00:00
parent fef943873c
commit 80355fd456
8 changed files with 14 additions and 13 deletions

View File

@@ -964,7 +964,7 @@ class ExportOBJ(bpy.types.Operator):
def menu_func(self, context):
default_path = bpy.data.filepath.replace(".blend", ".obj")
default_path = os.path.splitext(bpy.data.filepath)[0] + ".obj"
self.layout.operator(ExportOBJ.bl_idname, text="Wavefront (.obj)").filepath = default_path