mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-20 13:17:54 -06:00
Fixed regression causing [input_filename] and [input_filename_base] not being available in custom G-code anymore. Includes regression test. #1507
This commit is contained in:
parent
c0f453f83e
commit
a07c48bb30
2 changed files with 14 additions and 6 deletions
10
t/gcode.t
10
t/gcode.t
|
@ -1,4 +1,4 @@
|
|||
use Test::More tests => 20;
|
||||
use Test::More tests => 21;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
|
@ -184,4 +184,12 @@ use Slic3r::Test;
|
|||
}
|
||||
}
|
||||
|
||||
{
|
||||
my $config = Slic3r::Config->new_from_defaults;
|
||||
$config->set('start_gcode', 'START:[input_filename]');
|
||||
my $print = Slic3r::Test::init_print('20mm_cube', config => $config);
|
||||
my $gcode = Slic3r::Test::gcode($print);
|
||||
like $gcode, qr/START:20mm_cube/, '[input_filename] is also available in custom G-code';
|
||||
}
|
||||
|
||||
__END__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue