mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-03 00:10:38 +08:00
Fixed regression in DLP manual control
This commit is contained in:
parent
f24fc2c675
commit
ec4f618cb5
@ -9,7 +9,7 @@ use Wx::Event qw(EVT_BUTTON EVT_CLOSE EVT_TEXT_ENTER EVT_SPINCTRL EVT_SLIDER);
|
|||||||
use base qw(Wx::Dialog Class::Accessor);
|
use base qw(Wx::Dialog Class::Accessor);
|
||||||
use utf8;
|
use utf8;
|
||||||
|
|
||||||
__PACKAGE__->mk_accessors(qw(config config2 screen controller _optgroups));
|
__PACKAGE__->mk_accessors(qw(config config2 manual_control_config screen controller _optgroups));
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, $parent) = @_;
|
my ($class, $parent) = @_;
|
||||||
@ -27,6 +27,12 @@ sub new {
|
|||||||
z_lift_speed => 8,
|
z_lift_speed => 8,
|
||||||
offset => [0,0],
|
offset => [0,0],
|
||||||
});
|
});
|
||||||
|
$self->manual_control_config({
|
||||||
|
xy_travel_speed => 130,
|
||||||
|
z_travel_speed => 10,
|
||||||
|
temperature => '',
|
||||||
|
bed_temperature => '',
|
||||||
|
});
|
||||||
|
|
||||||
my $ini = eval { Slic3r::Config->read_ini("$Slic3r::GUI::datadir/DLP.ini") };
|
my $ini = eval { Slic3r::Config->read_ini("$Slic3r::GUI::datadir/DLP.ini") };
|
||||||
if ($ini) {
|
if ($ini) {
|
||||||
@ -286,7 +292,7 @@ sub new {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
my $dlg = Slic3r::GUI::Controller::ManualControlDialog->new
|
my $dlg = Slic3r::GUI::Controller::ManualControlDialog->new
|
||||||
($self, $self->config, $sender);
|
($self, $self->config, $sender, $self->manual_control_config);
|
||||||
$dlg->ShowModal;
|
$dlg->ShowModal;
|
||||||
$sender->disconnect;
|
$sender->disconnect;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user