mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 04:02:52 -06:00 
			
		
		
		
	New [layer_num] placeholder in layer change G-code
This commit is contained in:
		
							parent
							
								
									8ea4ed3b5e
								
							
						
					
					
						commit
						625a300822
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -44,7 +44,9 @@ sub process_layer { | |||
|     $self->gcodegen->move_z_callback(sub { | ||||
|         $self->gcodegen->move_z_callback(undef);  # circular ref or not? | ||||
|         return "" if !$Slic3r::Config->layer_gcode; | ||||
|         return $Slic3r::Config->replace_options($Slic3r::Config->layer_gcode) . "\n"; | ||||
|         return $Slic3r::Config->replace_options($Slic3r::Config->layer_gcode, { | ||||
|             layer_num => $self->gcodegen->layer->id, | ||||
|         }) . "\n"; | ||||
|     }); | ||||
|      | ||||
|     # extrude skirt | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci