mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 12:41:20 -06:00 
			
		
		
		
	Bugfix: do not die when no layers are detected at all
This commit is contained in:
		
							parent
							
								
									18cfc15ead
								
							
						
					
					
						commit
						b422537cc4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -129,7 +129,7 @@ sub new_from_mesh { | |||
|     } | ||||
|      | ||||
|     # remove empty layers from bottom | ||||
|     while (!@{$print->layers->[0]->slices}) { | ||||
|     while (@{$print->layers} && !@{$print->layers->[0]->slices}) { | ||||
|         shift @{$print->layers}; | ||||
|         for (my $i = 0; $i <= $#{$print->layers}; $i++) { | ||||
|             $print->layers->[$i]->id($i); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci