mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Fixed regression when using --infill-only-where-needed. Includes regression test. #1721
This commit is contained in:
		
							parent
							
								
									878deb8183
								
							
						
					
					
						commit
						e837183327
					
				
					 2 changed files with 12 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -556,8 +556,8 @@ sub clip_fill_surfaces {
 | 
			
		|||
    my $overhangs = [];  # arrayref of polygons
 | 
			
		||||
    for my $layer_id (reverse 0..$#{$self->layers}) {
 | 
			
		||||
        my $layer = $self->layers->[$layer_id];
 | 
			
		||||
        my @layer_internal = ();
 | 
			
		||||
        my @new_internal = ();
 | 
			
		||||
        my @layer_internal = ();  # arrayref of Surface objects
 | 
			
		||||
        my @new_internal = ();    # arrayref of Surface objects
 | 
			
		||||
        
 | 
			
		||||
        # clip this layer's internal surfaces to @overhangs
 | 
			
		||||
        foreach my $layerm (@{$layer->regions}) {
 | 
			
		||||
| 
						 | 
				
			
			@ -591,10 +591,10 @@ sub clip_fill_surfaces {
 | 
			
		|||
        if ($layer_id > 0) {
 | 
			
		||||
            my $solid = diff(
 | 
			
		||||
                [ map @$_, @{$layer->slices} ],
 | 
			
		||||
                \@layer_internal,
 | 
			
		||||
                [ map $_->p, @layer_internal ],
 | 
			
		||||
            );
 | 
			
		||||
            $overhangs = offset($solid, +$additional_margin);
 | 
			
		||||
            push @$overhangs, @new_internal;  # propagate upper overhangs
 | 
			
		||||
            push @$overhangs, map $_->p, @new_internal;  # propagate upper overhangs
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue