mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Call print->config before print->expanded_output_filepath. #573
This commit is contained in:
@@ -469,6 +469,9 @@ sub export_gcode {
|
|||||||
return;
|
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
|
# select output file
|
||||||
$self->{output_file} = $main::opt{output};
|
$self->{output_file} = $main::opt{output};
|
||||||
{
|
{
|
||||||
@@ -484,7 +487,6 @@ 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(
|
||||||
|
|||||||
Reference in New Issue
Block a user