Update bed shape in 3D preview as well

This commit is contained in:
Alessandro Ranellucci 2015-01-25 00:29:51 +01:00
parent a5c0ffe963
commit 38d8b1d268
2 changed files with 2 additions and 1 deletions

View File

@ -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')) {

View File

@ -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;