Bugfix: recent refactoring broke slicing from plater on multi-threaded perls

This commit is contained in:
Alessandro Ranellucci 2012-07-29 15:51:26 +02:00
parent 92754d7cd4
commit 9933132ae6

View File

@ -483,6 +483,7 @@ sub export_gcode {
} }
$self->statusbar->StartBusy; $self->statusbar->StartBusy;
$self->{print}->config($self->skeinpanel->config); # set this before spawning the thread because ->config needs GetParent and it's not available there
if ($Slic3r::have_threads) { if ($Slic3r::have_threads) {
$self->{export_thread} = threads->create(sub { $self->{export_thread} = threads->create(sub {
$self->export_gcode2( $self->export_gcode2(
@ -530,7 +531,6 @@ sub export_gcode2 {
eval { eval {
my $print = $self->{print}; my $print = $self->{print};
$print->config($self->skeinpanel->config);
$print->config->validate; $print->config->validate;
$print->validate; $print->validate;