From e13a9adff252ca4f1c44fd3aad0fc5f0cbec9b3e Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Tue, 20 Feb 2018 11:10:54 +0100 Subject: [PATCH] 2nd attempt to fix JIRA SPE-22 (wrong file export on MAC) --- lib/Slic3r/GUI/Plater.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index da2c08c58..88d4d8934 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -1624,7 +1624,12 @@ sub _get_export_file { } elsif ($format eq 'AMF') { + if ($^O eq 'MacOS') { + # It seems that MacOS does not like double extension + $suffix = '.amf'; + } else { $suffix = '.zip.amf'; + } $wildcard = 'amf'; } elsif ($format eq '3MF')