mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Fixed float comparison in combine_infill
This commit is contained in:
		
							parent
							
								
									a32937cef2
								
							
						
					
					
						commit
						4fad87e438
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -4,7 +4,7 @@ use warnings;
 | 
			
		|||
 | 
			
		||||
use List::Util qw(min max sum first);
 | 
			
		||||
use Slic3r::Flow ':roles';
 | 
			
		||||
use Slic3r::Geometry qw(X Y Z PI scale unscale chained_path);
 | 
			
		||||
use Slic3r::Geometry qw(X Y Z PI scale unscale chained_path epsilon);
 | 
			
		||||
use Slic3r::Geometry::Clipper qw(diff diff_ex intersection intersection_ex union union_ex 
 | 
			
		||||
    offset offset_ex offset2 offset2_ex intersection_ppl CLIPPER_OFFSET_SCALE JT_MITER);
 | 
			
		||||
use Slic3r::Print::State ':steps';
 | 
			
		||||
| 
						 | 
				
			
			@ -1010,7 +1010,7 @@ sub combine_infill {
 | 
			
		|||
                
 | 
			
		||||
                # check whether the combination of this layer with the lower layers' buffer
 | 
			
		||||
                # would exceed max layer height or max combined layer count
 | 
			
		||||
                if ($current_height + $height >= $nozzle_diameter || $layers >= $every) {
 | 
			
		||||
                if ($current_height + $height >= $nozzle_diameter + epsilon || $layers >= $every) {
 | 
			
		||||
                    # append combination to lower layer
 | 
			
		||||
                    $combine{$layer_idx-1} = $layers;
 | 
			
		||||
                    $current_height = $layers = 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue