diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index b17c93106..2f37b9f67 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -124,7 +124,6 @@ sub _handle_legacy { my ($opt_key, $value) = @_; # handle legacy options - return () if first { $_ eq $opt_key } @Ignore; if ($opt_key =~ /^(extrusion_width|bottom_layer_speed|first_layer_height)_ratio$/) { $opt_key = $1; $opt_key =~ s/^bottom_layer_speed$/first_layer_speed/; @@ -145,6 +144,12 @@ sub _handle_legacy { $opt_key = 'seam_position'; $value = 'random'; } + if ($opt_key eq 'bed_size' && $value) { + $opt_key = 'bed_shape'; + my ($x, $y) = split /,/, $value; + $value = "0x0,${x}x0,${x}x${y},0x${y}"; + } + return () if first { $_ eq $opt_key } @Ignore; # For historical reasons, the world's full of configs having these very low values; # to avoid unexpected behavior we need to ignore them. Banning these two hard-coded diff --git a/lib/Slic3r/GUI.pm b/lib/Slic3r/GUI.pm index 29c6708a6..84c4e6c1a 100644 --- a/lib/Slic3r/GUI.pm +++ b/lib/Slic3r/GUI.pm @@ -112,6 +112,11 @@ sub OnInit { . "your support material settings to the factory defaults and start from " . "those. Enjoy and provide feedback!", "Support Material"); } + if (!defined $last_version || $last_version =~ /^(?:0|1\.[01])\./) { + show_info($self->{mainframe}, "Hello! In this version a new Bed Shape option was " + . "added. If the bed placement in the plater preview screen looks wrong, go " + . "to Print Settings and click the \"Set\" button next to \"Bed Shape\".", "Bed Shape"); + } } $self->{mainframe}->config_wizard if $run_wizard;