Skip to content
Snippets Groups Projects
Commit 3b5ab077 authored by Campbell Barton's avatar Campbell Barton
Browse files

another small fix for people that use blend in their path name

parent d232c425
No related branches found
No related tags found
No related merge requests found
......@@ -201,9 +201,8 @@ class SaveAsRuntime(bpy.types.Operator):
def menu_func(self, context):
ext = '.app' if sys.platform == 'darwin' else os.path.splitext(bpy.app.binary_path)[-1]
default_blend_path = bpy.data.filepath.replace(".blend", ext)
default_blend_path = bpy.path.ensure_ext(bpy.data.filepath, ext)
self.layout.operator(SaveAsRuntime.bl_idname, text=SaveAsRuntime.bl_label).filepath = default_blend_path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment