From d1b8f37ddaac55e31f21f03febf27a17711b6c04 Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Wed, 1 Aug 2012 16:06:03 +0200 Subject: [PATCH] Call print->config before print->expanded_output_filepath. #573 --- lib/Slic3r/GUI/Plater.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index dea9c8684..05c1616dd 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -469,6 +469,9 @@ sub export_gcode { return; } + # set this before spawning the thread because ->config needs GetParent and it's not available there + $self->{print}->config($self->skeinpanel->config); + # select output file $self->{output_file} = $main::opt{output}; { @@ -484,7 +487,6 @@ 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(