Update bed shape in 3D preview as well
This commit is contained in:
parent
a5c0ffe963
commit
38d8b1d268
@ -1328,6 +1328,8 @@ sub on_config_change {
|
|||||||
if ($opt_key eq 'bed_shape') {
|
if ($opt_key eq 'bed_shape') {
|
||||||
$self->{canvas}->update_bed_size;
|
$self->{canvas}->update_bed_size;
|
||||||
$self->{canvas3D}->update_bed_size if $self->{canvas3D};
|
$self->{canvas3D}->update_bed_size if $self->{canvas3D};
|
||||||
|
$self->{preview3D}->set_bed_shape($self->{config}->bed_shape)
|
||||||
|
if $self->{preview3D};
|
||||||
$self->update;
|
$self->update;
|
||||||
} elsif ($opt_key eq 'octoprint_host') {
|
} elsif ($opt_key eq 'octoprint_host') {
|
||||||
if ($config->get('octoprint_host')) {
|
if ($config->get('octoprint_host')) {
|
||||||
|
@ -66,7 +66,6 @@ sub new {
|
|||||||
$sizer->SetSizeHints($self);
|
$sizer->SetSizeHints($self);
|
||||||
|
|
||||||
# init canvas
|
# init canvas
|
||||||
$canvas->set_bed_shape($print->config->bed_shape);
|
|
||||||
$self->print($print);
|
$self->print($print);
|
||||||
$self->reload_print;
|
$self->reload_print;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user