diff --git a/lib/Slic3r/GUI/SkeinPanel.pm b/lib/Slic3r/GUI/SkeinPanel.pm index 11ff0dae4..b130b4784 100644 --- a/lib/Slic3r/GUI/SkeinPanel.pm +++ b/lib/Slic3r/GUI/SkeinPanel.pm @@ -134,6 +134,11 @@ sub quick_slice { $sprint->apply_config($config); $sprint->set_model(Slic3r::Model->read_from_file($input_file)); + { + my $extra = $self->extra_variables; + $sprint->placeholder_parser->set($_, $extra->{$_}) for keys %$extra; + } + # select output file my $output_file; if ($params{reslice}) { diff --git a/lib/Slic3r/Print/Simple.pm b/lib/Slic3r/Print/Simple.pm index ded003063..8fa9889ff 100644 --- a/lib/Slic3r/Print/Simple.pm +++ b/lib/Slic3r/Print/Simple.pm @@ -7,7 +7,8 @@ has '_print' => ( is => 'ro', default => sub { Slic3r::Print->new }, handles => [qw(apply_config extruders expanded_output_filepath - total_used_filament total_extruded_volume)], + total_used_filament total_extruded_volume + placeholder_parser)], ); has 'duplicate' => (