From f8a2087fc63a9cd8fedc76d374afb3df6e9a7b8b Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 1 Mar 2017 13:16:33 +0100 Subject: [PATCH] Fixed a bug after merge. https://github.com/prusa3d/Slic3r/issues/163 --- lib/Slic3r/Print.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 12fd69431..a6b22902f 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -104,11 +104,11 @@ sub export_gcode { if ($tempfile) { my $i; for ($i = 0; $i < 5; $i += 1) { - last if (rename Slic3r::encode_path($tempfile), Slic3r::encode_path($file)); + last if (rename Slic3r::encode_path($tempfile), Slic3r::encode_path($output_file)); # Wait for 1/4 seconds and try to rename once again. select(undef, undef, undef, 0.25); } - Slic3r::debugf "Failed to remove the output G-code file from $tempfile to $file. Is $tempfile locked?\n" if ($i == 5); + Slic3r::debugf "Failed to remove the output G-code file from $tempfile to $output_file. Is $tempfile locked?\n" if ($i == 5); } }