mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Some G-code flavor logic simplification
This commit is contained in:
		
							parent
							
								
									167ec7a4e7
								
							
						
					
					
						commit
						c95245f143
					
				
					 1 changed files with 4 additions and 6 deletions
				
			
		|  | @ -732,12 +732,10 @@ sub write_gcode { | |||
|     print  $fh "G90 ; use absolute coordinates\n" if $Slic3r::Config->gcode_flavor ne 'makerbot'; | ||||
|     if ($Slic3r::Config->gcode_flavor =~ /^(?:reprap|teacup)$/) { | ||||
|         printf $fh $gcodegen->reset_e; | ||||
|         if ($Slic3r::Config->gcode_flavor =~ /^(?:reprap|teacup|makerbot|sailfish)$/) { | ||||
|             if ($Slic3r::Config->use_relative_e_distances) { | ||||
|                 print $fh "M83 ; use relative distances for extrusion\n"; | ||||
|             } else { | ||||
|                 print $fh "M82 ; use absolute distances for extrusion\n"; | ||||
|             } | ||||
|         if ($Slic3r::Config->use_relative_e_distances) { | ||||
|             print $fh "M83 ; use relative distances for extrusion\n"; | ||||
|         } else { | ||||
|             print $fh "M82 ; use absolute distances for extrusion\n"; | ||||
|         } | ||||
|     } | ||||
|      | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci