Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2015-04-12 21:16:27 +0300
committerAlessandro Ranellucci <aar@cpan.org>2015-04-12 21:16:27 +0300
commit1f8ef2a63c4277bf9945ca1ce1618f6ba2046822 (patch)
tree587d0cc8d6880ff856b1027c6e1f06ab26d7ed50 /t
parent901716adc8aafc9605b97dc3b518be865bc97023 (diff)
Fixed regression introduced by the recent PerimeterGenerator refactoring causing spiral vase not to be correctly skipped on multi-loop layers. Includes regression test. #2761
Diffstat (limited to 't')
-rw-r--r--t/gcode.t19
1 files changed, 18 insertions, 1 deletions
diff --git a/t/gcode.t b/t/gcode.t
index 79ab1a7de..fb85ee5e4 100644
--- a/t/gcode.t
+++ b/t/gcode.t
@@ -1,4 +1,4 @@
-use Test::More tests => 22;
+use Test::More tests => 23;
use strict;
use warnings;
@@ -200,4 +200,21 @@ use Slic3r::Test;
like $gcode, qr/START:20mm_cube/, '[input_filename] is also available in custom G-code';
}
+{
+ my $config = Slic3r::Config->new_from_defaults;
+ $config->set('spiral_vase', 1);
+ my $print = Slic3r::Test::init_print('cube_with_hole', config => $config);
+
+ my $spiral = 0;
+ Slic3r::GCode::Reader->new->parse(Slic3r::Test::gcode($print), sub {
+ my ($self, $cmd, $args, $info) = @_;
+
+ if ($cmd eq 'G1' && exists $args->{E} && exists $args->{Z}) {
+ $spiral = 1;
+ }
+ });
+
+ ok !$spiral, 'spiral vase is correctly disabled on layers with multiple loops';
+}
+
__END__