From 9933132ae6333aa1eb43e45a350a8ac2180aedde Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 29 Jul 2012 15:51:26 +0200 Subject: [PATCH] Bugfix: recent refactoring broke slicing from plater on multi-threaded perls --- lib/Slic3r/GUI/Plater.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index e843819b3..87de2bdee 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -483,6 +483,7 @@ sub export_gcode { } $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) { $self->{export_thread} = threads->create(sub { $self->export_gcode2( @@ -530,7 +531,6 @@ sub export_gcode2 { eval { my $print = $self->{print}; - $print->config($self->skeinpanel->config); $print->config->validate; $print->validate;