mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Fixed regression causing crash when using avoid_crossing_perimeters with multiple object, caused by recent refactorings. Added regression test
This commit is contained in:
		
							parent
							
								
									43cbad8867
								
							
						
					
					
						commit
						23848492ce
					
				
					 2 changed files with 24 additions and 1 deletions
				
			
		
							
								
								
									
										21
									
								
								t/avoid_crossing_perimeters.t
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								t/avoid_crossing_perimeters.t
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,21 @@
 | 
			
		|||
use Test::More tests => 1;
 | 
			
		||||
use strict;
 | 
			
		||||
use warnings;
 | 
			
		||||
 | 
			
		||||
BEGIN {
 | 
			
		||||
    use FindBin;
 | 
			
		||||
    use lib "$FindBin::Bin/../lib";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
use List::Util qw(first sum);
 | 
			
		||||
use Slic3r;
 | 
			
		||||
use Slic3r::Test;
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    my $config = Slic3r::Config->new_from_defaults;
 | 
			
		||||
    $config->set('avoid_crossing_perimeters', 2);
 | 
			
		||||
    my $print = Slic3r::Test::init_print('20mm_cube', config => $config, duplicate => 2);
 | 
			
		||||
    ok my $gcode = Slic3r::Test::gcode($print), "no crash with avoid_crossing_perimeters and multiple objects";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
__END__
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue