From 68f001a7dee7fe3f39a14c91f2e855587d300dc9 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci <aar@cpan.org> Date: Tue, 14 Feb 2012 21:57:53 +0100 Subject: [PATCH] Mark acceleration settings as experimental and add a M501 command at the end of the print if acceleration control is enabled --- lib/Slic3r/GUI/SkeinPanel.pm | 2 +- lib/Slic3r/Print.pm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/SkeinPanel.pm b/lib/Slic3r/GUI/SkeinPanel.pm index 0d4636c8a..42cb1ddbf 100644 --- a/lib/Slic3r/GUI/SkeinPanel.pm +++ b/lib/Slic3r/GUI/SkeinPanel.pm @@ -36,7 +36,7 @@ sub new { options => [qw(travel_speed bottom_layer_speed_ratio)], }, acceleration => { - title => 'Acceleration settings', + title => 'Acceleration (experimental)', options => [qw(acceleration perimeter_acceleration infill_acceleration)], }, accuracy => { diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index e9f4f41a3..d93958fb4 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -521,6 +521,7 @@ sub export_gcode { # write end commands to file print $fh $extruder->retract; + print $fh "M501 ; reset acceleration\n" if $Slic3r::acceleration; print $fh "$Slic3r::end_gcode\n"; printf $fh "; filament used = %.1fmm (%.1fcm3)\n",