mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Bugfix: don't crash when skirts > 0 but skirt_height = 0. Includes regression test. #2537
This commit is contained in:
parent
9f0283f808
commit
90afbc8bd9
2 changed files with 11 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
use Test::More tests => 5;
|
||||
use Test::More tests => 6;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
|
@ -79,6 +79,15 @@ use Slic3r::Test;
|
|||
ok Slic3r::Test::gcode($print), 'successful G-code generation when skirt is smaller than brim width';
|
||||
}
|
||||
|
||||
{
|
||||
my $config = Slic3r::Config->new_from_defaults;
|
||||
$config->set('skirts', 1);
|
||||
$config->set('skirt_height', 0);
|
||||
|
||||
my $print = Slic3r::Test::init_print('20mm_cube', config => $config);
|
||||
ok Slic3r::Test::gcode($print), 'successful G-code generation when skirt_height = 0 and skirts > 0';
|
||||
}
|
||||
|
||||
{
|
||||
my $config = Slic3r::Config->new_from_defaults;
|
||||
$config->set('layer_height', 0.4);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue