mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
Ported expanded_output_filepath() to C++/XS
This commit is contained in:
parent
66493ce821
commit
6a90fceaaf
8 changed files with 42 additions and 47 deletions
|
@ -59,7 +59,7 @@ use Slic3r::Test;
|
|||
$config->set('start_gcode', "TRAVEL:[travel_speed] HEIGHT:[layer_height]\n");
|
||||
my $print = Slic3r::Test::init_print('20mm_cube', config => $config);
|
||||
|
||||
my $output_file = $print->print->expanded_output_filepath;
|
||||
my $output_file = $print->print->output_filepath;
|
||||
my ($t, $h) = map $config->$_, qw(travel_speed layer_height);
|
||||
ok $output_file =~ /ts_${t}_/, 'print config options are replaced in output filename';
|
||||
ok $output_file =~ /lh_$h\./, 'region config options are replaced in output filename';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue