Bugfix: [filament_preset] was not replaced in filename when using Quick Slice. #1870
This commit is contained in:
parent
f0ff653018
commit
f6e99f1467
2 changed files with 7 additions and 1 deletions
|
@ -134,6 +134,11 @@ sub quick_slice {
|
||||||
$sprint->apply_config($config);
|
$sprint->apply_config($config);
|
||||||
$sprint->set_model(Slic3r::Model->read_from_file($input_file));
|
$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
|
# select output file
|
||||||
my $output_file;
|
my $output_file;
|
||||||
if ($params{reslice}) {
|
if ($params{reslice}) {
|
||||||
|
|
|
@ -7,7 +7,8 @@ has '_print' => (
|
||||||
is => 'ro',
|
is => 'ro',
|
||||||
default => sub { Slic3r::Print->new },
|
default => sub { Slic3r::Print->new },
|
||||||
handles => [qw(apply_config extruders expanded_output_filepath
|
handles => [qw(apply_config extruders expanded_output_filepath
|
||||||
total_used_filament total_extruded_volume)],
|
total_used_filament total_extruded_volume
|
||||||
|
placeholder_parser)],
|
||||||
);
|
);
|
||||||
|
|
||||||
has 'duplicate' => (
|
has 'duplicate' => (
|
||||||
|
|
Loading…
Reference in a new issue