mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	G-code processor tiny change: In place initialization
This commit is contained in:
		
							parent
							
								
									97d1fe35ad
								
							
						
					
					
						commit
						86d06b0be9
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -2916,7 +2916,7 @@ void GCodeProcessor::store_move_vertex(EMoveType type)
 | 
			
		|||
        m_line_id + 1 :
 | 
			
		||||
        ((type == EMoveType::Seam) ? m_last_line_id : m_line_id);
 | 
			
		||||
 | 
			
		||||
    MoveVertex vertex = {
 | 
			
		||||
    m_result.moves.push_back({
 | 
			
		||||
        m_last_line_id,
 | 
			
		||||
        type,
 | 
			
		||||
        m_extrusion_role,
 | 
			
		||||
| 
						 | 
				
			
			@ -2931,8 +2931,7 @@ void GCodeProcessor::store_move_vertex(EMoveType type)
 | 
			
		|||
        m_fan_speed,
 | 
			
		||||
        m_extruder_temps[m_extruder_id],
 | 
			
		||||
        static_cast<float>(m_result.moves.size())
 | 
			
		||||
    };
 | 
			
		||||
    m_result.moves.emplace_back(vertex);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    // stores stop time placeholders for later use
 | 
			
		||||
    if (type == EMoveType::Color_change || type == EMoveType::Pause_Print) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue