From 38d8b1d26811bd663047c7c72282150e4a2a37cb Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 25 Jan 2015 00:29:51 +0100 Subject: [PATCH] Update bed shape in 3D preview as well --- lib/Slic3r/GUI/Plater.pm | 2 ++ lib/Slic3r/GUI/Plater/3DPreview.pm | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index b4063c8a8..0b7fbd26c 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -1328,6 +1328,8 @@ sub on_config_change { if ($opt_key eq 'bed_shape') { $self->{canvas}->update_bed_size; $self->{canvas3D}->update_bed_size if $self->{canvas3D}; + $self->{preview3D}->set_bed_shape($self->{config}->bed_shape) + if $self->{preview3D}; $self->update; } elsif ($opt_key eq 'octoprint_host') { if ($config->get('octoprint_host')) { diff --git a/lib/Slic3r/GUI/Plater/3DPreview.pm b/lib/Slic3r/GUI/Plater/3DPreview.pm index d93876dcf..605463a6a 100644 --- a/lib/Slic3r/GUI/Plater/3DPreview.pm +++ b/lib/Slic3r/GUI/Plater/3DPreview.pm @@ -66,7 +66,6 @@ sub new { $sizer->SetSizeHints($self); # init canvas - $canvas->set_bed_shape($print->config->bed_shape); $self->print($print); $self->reload_print;