mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Precache gcode_comments flag before path loop.
This commit is contained in:
		
							parent
							
								
									9f71ea15cf
								
							
						
					
					
						commit
						f56206cac3
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -340,6 +340,7 @@ sub extrude_path { | |||
|      | ||||
|     # extrude arc or line | ||||
|     $gcode .= ";_BRIDGE_FAN_START\n" if $path->is_bridge; | ||||
|     my $gcode_comments = $self->print_config->gcode_comments; | ||||
|     my $path_length = 0; | ||||
|     { | ||||
|         my $local_F = $F; | ||||
|  | @ -362,7 +363,7 @@ sub extrude_path { | |||
|             $gcode .= " F$local_F" | ||||
|                 if $local_F; | ||||
|             $gcode .= " ; $description" | ||||
|                 if $self->print_config->gcode_comments; | ||||
|                 if $gcode_comments; | ||||
|             $gcode .= "\n"; | ||||
|              | ||||
|             # only include F in the first line | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Y. Sapir
						Y. Sapir