mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Bugfix: division by zero when nothing in a single layer could be parsed. #100
This commit is contained in:
		
							parent
							
								
									525855dc7d
								
							
						
					
					
						commit
						99c1facec6
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -200,7 +200,9 @@ sub make_loops { | |||
|         my $total_discarded_length = 0; | ||||
|         $total_discarded_length += $_->length for map polyline_lines($_), @discarded_polylines; | ||||
|         $total_discarded_length += $_->length for @discarded_lines; | ||||
|         my $discarded_ratio = $total_discarded_length / $total_detected_length; | ||||
|         my $discarded_ratio = $total_detected_length | ||||
|             ? ($total_discarded_length / $total_detected_length) | ||||
|             : 0; | ||||
|          | ||||
|         Slic3r::debugf "  length ratio of discarded lines is %f\n", $discarded_ratio; | ||||
|          | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci