mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-12 09:29:06 +08:00
Removed method update_bed_size from 3D perl class
This commit is contained in:
parent
66b4620d9b
commit
f6ef28becc
@ -408,14 +408,18 @@ sub new {
|
|||||||
|
|
||||||
$self->{canvas}->update_bed_size;
|
$self->{canvas}->update_bed_size;
|
||||||
if ($self->{canvas3D}) {
|
if ($self->{canvas3D}) {
|
||||||
$self->{canvas3D}->update_bed_size;
|
|
||||||
#==============================================================================================================================
|
#==============================================================================================================================
|
||||||
|
Slic3r::GUI::_3DScene::set_bed_shape($self->{canvas3D}, $self->{config}->bed_shape);
|
||||||
Slic3r::GUI::_3DScene::zoom_to_bed($self->{canvas3D});
|
Slic3r::GUI::_3DScene::zoom_to_bed($self->{canvas3D});
|
||||||
|
# $self->{canvas3D}->update_bed_size;
|
||||||
# $self->{canvas3D}->zoom_to_bed;
|
# $self->{canvas3D}->zoom_to_bed;
|
||||||
#==============================================================================================================================
|
#==============================================================================================================================
|
||||||
}
|
}
|
||||||
if ($self->{preview3D}) {
|
if ($self->{preview3D}) {
|
||||||
$self->{preview3D}->set_bed_shape($self->{config}->bed_shape);
|
#==============================================================================================================================
|
||||||
|
Slic3r::GUI::_3DScene::set_bed_shape($self->{preview3D}->canvas, $self->{config}->bed_shape);
|
||||||
|
# $self->{preview3D}->set_bed_shape($self->{config}->bed_shape);
|
||||||
|
#==============================================================================================================================
|
||||||
}
|
}
|
||||||
$self->update;
|
$self->update;
|
||||||
|
|
||||||
@ -1830,9 +1834,13 @@ sub on_config_change {
|
|||||||
$self->{config}->set($opt_key, $config->get($opt_key));
|
$self->{config}->set($opt_key, $config->get($opt_key));
|
||||||
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->{preview3D}->set_bed_shape($self->{config}->bed_shape)
|
Slic3r::GUI::_3DScene::set_bed_shape($self->{canvas3D}, $self->{config}->bed_shape) if $self->{canvas3D};
|
||||||
if $self->{preview3D};
|
Slic3r::GUI::_3DScene::set_bed_shape($self->{preview3D}->canvas, $self->{config}->bed_shape) if $self->{preview3D};
|
||||||
|
# $self->{canvas3D}->update_bed_size if $self->{canvas3D};
|
||||||
|
# $self->{preview3D}->set_bed_shape($self->{config}->bed_shape)
|
||||||
|
# if $self->{preview3D};
|
||||||
|
#==============================================================================================================================
|
||||||
$update_scheduled = 1;
|
$update_scheduled = 1;
|
||||||
} elsif ($opt_key =~ '^wipe_tower' || $opt_key eq 'single_extruder_multi_material') {
|
} elsif ($opt_key =~ '^wipe_tower' || $opt_key eq 'single_extruder_multi_material') {
|
||||||
$update_scheduled = 1;
|
$update_scheduled = 1;
|
||||||
|
@ -228,9 +228,10 @@ sub reload_scene {
|
|||||||
|
|
||||||
#==============================================================================================================================
|
#==============================================================================================================================
|
||||||
Slic3r::GUI::_3DScene::reset_volumes($self);
|
Slic3r::GUI::_3DScene::reset_volumes($self);
|
||||||
|
Slic3r::GUI::_3DScene::set_bed_shape($self, $self->{config}->bed_shape);
|
||||||
# $self->reset_objects;
|
# $self->reset_objects;
|
||||||
|
# $self->update_bed_size;
|
||||||
#==============================================================================================================================
|
#==============================================================================================================================
|
||||||
$self->update_bed_size;
|
|
||||||
|
|
||||||
if (! $self->IsShown && ! $force) {
|
if (! $self->IsShown && ! $force) {
|
||||||
$self->{reload_delayed} = 1;
|
$self->{reload_delayed} = 1;
|
||||||
@ -306,13 +307,12 @@ sub reload_scene {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sub update_bed_size {
|
|
||||||
my ($self) = @_;
|
|
||||||
#==============================================================================================================================
|
#==============================================================================================================================
|
||||||
Slic3r::GUI::_3DScene::set_bed_shape($self, $self->{config}->bed_shape);
|
#sub update_bed_size {
|
||||||
|
# my ($self) = @_;
|
||||||
# $self->set_bed_shape($self->{config}->bed_shape);
|
# $self->set_bed_shape($self->{config}->bed_shape);
|
||||||
|
#}
|
||||||
#==============================================================================================================================
|
#==============================================================================================================================
|
||||||
}
|
|
||||||
|
|
||||||
# Called by the Platter wxNotebook when this page is activated.
|
# Called by the Platter wxNotebook when this page is activated.
|
||||||
sub OnActivate {
|
sub OnActivate {
|
||||||
|
@ -546,13 +546,12 @@ sub set_z_idx_high
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sub set_bed_shape {
|
|
||||||
my ($self, $bed_shape) = @_;
|
|
||||||
#==============================================================================================================================
|
#==============================================================================================================================
|
||||||
Slic3r::GUI::_3DScene::set_bed_shape($self->canvas, $bed_shape);
|
#sub set_bed_shape {
|
||||||
|
# my ($self, $bed_shape) = @_;
|
||||||
# $self->canvas->set_bed_shape($bed_shape);
|
# $self->canvas->set_bed_shape($bed_shape);
|
||||||
|
#}
|
||||||
#==============================================================================================================================
|
#==============================================================================================================================
|
||||||
}
|
|
||||||
|
|
||||||
sub set_number_extruders {
|
sub set_number_extruders {
|
||||||
my ($self, $number_extruders) = @_;
|
my ($self, $number_extruders) = @_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user