mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Bugfix: recent changes broke the "Infill every N layers" feature
This commit is contained in:
		
							parent
							
								
									ba1b59f54c
								
							
						
					
					
						commit
						8f32ee8f5a
					
				
					 3 changed files with 21 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -31,11 +31,14 @@ sub diff_ex {
 | 
			
		|||
    $clipper->clear;
 | 
			
		||||
    $clipper->add_subject_polygons($subject);
 | 
			
		||||
    $clipper->add_clip_polygons($clip);
 | 
			
		||||
    return $clipper->ex_execute(CT_DIFFERENCE, PFT_NONZERO, PFT_NONZERO);
 | 
			
		||||
    return [
 | 
			
		||||
        map Slic3r::ExPolygon->new($_),
 | 
			
		||||
            @{ $clipper->ex_execute(CT_DIFFERENCE, PFT_NONZERO, PFT_NONZERO) },
 | 
			
		||||
    ];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub diff {
 | 
			
		||||
    return [ map { $_->{outer}, $_->{holes} } diff_ex(@_) ];
 | 
			
		||||
    return [ map @$_, diff_ex(@_) ];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub union_ex {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue