mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Don't crash at the end of empty prints. #1042
This commit is contained in:
		
							parent
							
								
									7b7c9f6330
								
							
						
					
					
						commit
						ac2356f66a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1021,7 +1021,7 @@ sub write_gcode {
 | 
			
		|||
    $self->total_extrusion_length($gcodegen->total_extrusion_length);
 | 
			
		||||
    
 | 
			
		||||
    # write end commands to file
 | 
			
		||||
    print $fh $gcodegen->retract;
 | 
			
		||||
    print $fh $gcodegen->retract if $gcodegen->extruder;  # empty prints don't even set an extruder
 | 
			
		||||
    print $fh $gcodegen->set_fan(0);
 | 
			
		||||
    printf $fh "%s\n", $Slic3r::Config->replace_options($Slic3r::Config->end_gcode);
 | 
			
		||||
    
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue