GCodeProcessor::MoveVertex -> added placeholder for time

This commit is contained in:
enricoturri1966 2020-04-28 10:29:25 +02:00
parent a77461b467
commit 1cb0f044db
4 changed files with 11 additions and 0 deletions

View file

@ -591,6 +591,7 @@ void GCodeProcessor::store_move_vertex(EMoveType type)
vertex.fan_speed = m_fan_speed;
vertex.extruder_id = m_extruder_id;
vertex.cp_color_id = m_cp_color.current;
vertex.time = static_cast<float>(m_result.moves.size());
m_result.moves.emplace_back(vertex);
}

View file

@ -82,6 +82,7 @@ namespace Slic3r {
float height{ 0.0f }; // mm
float mm3_per_mm{ 0.0f };
float fan_speed{ 0.0f }; // percentage
float time{ 0.0f }; // s
float volumetric_rate() const { return feedrate * mm3_per_mm; }