mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Fixed detection of horizontal shells
This commit is contained in:
		
							parent
							
								
									2da5ee7448
								
							
						
					
					
						commit
						92dec2db2a
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -117,7 +117,9 @@ sub _facet {
 | 
			
		|||
    Slic3r::debugf "layers: min = %s, max = %s\n", $min_layer, $max_layer;
 | 
			
		||||
    
 | 
			
		||||
    # is the facet horizontal?
 | 
			
		||||
    if ($min_layer == $max_layer) {
 | 
			
		||||
    # (note that we can have $min_z == $max_z && $min_layer != $max_layer
 | 
			
		||||
    # if $min_z % $layer_height != 0)
 | 
			
		||||
    if ($min_z == $max_z) {
 | 
			
		||||
        Slic3r::debugf "Facet is horizontal\n";
 | 
			
		||||
        my $layer = $print->layer($min_layer);
 | 
			
		||||
        my $surface = $layer->add_surface(@vertices);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue