Fixed a bug in renaming a G-code at the end of a G-code export (#3708)

from .tmp suffix to a non .tmp file on localized Windows, thanks @bubnikv
This commit is contained in:
Joseph Lenox 2017-02-14 17:30:41 +00:00 committed by GitHub
parent 402035732b
commit 7d2884bc0c

View File

@ -101,7 +101,7 @@ sub export_gcode {
# close our gcode file # close our gcode file
close $fh; close $fh;
rename $tempfile, $output_file if $tempfile; rename Slic3r::encode_path($tempfile), Slic3r::encode_path($output_file) if $tempfile;
} }
# run post-processing scripts # run post-processing scripts