From ec4f618cb51abae00cfed11cfeab0d93873314d0 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 26 Apr 2017 22:18:36 +0200 Subject: [PATCH] Fixed regression in DLP manual control --- lib/Slic3r/GUI/Projector.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/GUI/Projector.pm b/lib/Slic3r/GUI/Projector.pm index c41b7e8ad..8443000d0 100644 --- a/lib/Slic3r/GUI/Projector.pm +++ b/lib/Slic3r/GUI/Projector.pm @@ -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 utf8; -__PACKAGE__->mk_accessors(qw(config config2 screen controller _optgroups)); +__PACKAGE__->mk_accessors(qw(config config2 manual_control_config screen controller _optgroups)); sub new { my ($class, $parent) = @_; @@ -27,6 +27,12 @@ sub new { z_lift_speed => 8, 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") }; if ($ini) { @@ -286,7 +292,7 @@ sub new { return; } my $dlg = Slic3r::GUI::Controller::ManualControlDialog->new - ($self, $self->config, $sender); + ($self, $self->config, $sender, $self->manual_control_config); $dlg->ShowModal; $sender->disconnect; });