mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Fix layer time slowdown
The recent GCode writer changes which put the speed changes on a line of their own have caused the layer time slowdown to be ignored by the regex in CoolingBuffer.pm. Fixes: #3134
This commit is contained in:
		
							parent
							
								
									82b07a02fa
								
							
						
					
					
						commit
						2e2e4e68d3
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -177,11 +177,11 @@ Wipe::wipe(GCode &gcodegen, bool toolchange)
 | 
			
		|||
            /*  Reduce retraction length a bit to avoid effective retraction speed to be greater than the configured one
 | 
			
		||||
                due to rounding (TODO: test and/or better math for this)  */
 | 
			
		||||
            double dE = length * (segment_length / wipe_dist) * 0.95;
 | 
			
		||||
            gcode += gcodegen.writer.set_speed(wipe_speed*60);
 | 
			
		||||
            gcode += gcodegen.writer.set_speed(wipe_speed*60, gcodegen.enable_cooling_markers ? ";_WIPE" : "");
 | 
			
		||||
            gcode += gcodegen.writer.extrude_to_xy(
 | 
			
		||||
                gcodegen.point_to_gcode(line->b),
 | 
			
		||||
                -dE,
 | 
			
		||||
                (std::string)"wipe and retract" + (gcodegen.enable_cooling_markers ? ";_WIPE" : "")
 | 
			
		||||
                "wipe and retract"
 | 
			
		||||
            );
 | 
			
		||||
            retracted += dE;
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			@ -562,7 +562,7 @@ GCode::_extrude(ExtrusionPath path, std::string description, double speed)
 | 
			
		|||
    // extrude arc or line
 | 
			
		||||
    if (path.is_bridge() && this->enable_cooling_markers)
 | 
			
		||||
        gcode += ";_BRIDGE_FAN_START\n";
 | 
			
		||||
    gcode += this->writer.set_speed(F);
 | 
			
		||||
    gcode += this->writer.set_speed(F, this->enable_cooling_markers ? ";_EXTRUDE_SET_SPEED" : "");
 | 
			
		||||
    double path_length = 0;
 | 
			
		||||
    {
 | 
			
		||||
        std::string comment = this->config.gcode_comments ? description : "";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue