Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer
This commit is contained in:
commit
6d56e60091
3 changed files with 14 additions and 14 deletions
|
@ -1,4 +1,5 @@
|
||||||
min_slic3r_version = 2.3.0-alpha2
|
min_slic3r_version = 2.3.0-alpha2
|
||||||
|
0.0.3 Fixed infill_overlap, start_gcode, end_gcode for Anycubic Predator
|
||||||
0.0.2 Added Anycubic Predator
|
0.0.2 Added Anycubic Predator
|
||||||
min_slic3r_version = 2.3.0-alpha0
|
min_slic3r_version = 2.3.0-alpha0
|
||||||
0.0.1 Initial Version
|
0.0.1 Initial Version
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -112,16 +112,14 @@ bool GCodeViewer::Path::matches(const GCodeProcessor::MoveVertex& move) const
|
||||||
case EMoveType::Custom_GCode:
|
case EMoveType::Custom_GCode:
|
||||||
case EMoveType::Retract:
|
case EMoveType::Retract:
|
||||||
case EMoveType::Unretract:
|
case EMoveType::Unretract:
|
||||||
case EMoveType::Extrude:
|
case EMoveType::Extrude: {
|
||||||
{
|
|
||||||
// use rounding to reduce the number of generated paths
|
// use rounding to reduce the number of generated paths
|
||||||
return type == move.type && role == move.extrusion_role && height == round_to_nearest(move.height, 2) &&
|
return type == move.type && move.position[2] <= first.position[2] && role == move.extrusion_role && height == round_to_nearest(move.height, 2) &&
|
||||||
width == round_to_nearest(move.width, 2) && feedrate == move.feedrate && fan_speed == move.fan_speed &&
|
width == round_to_nearest(move.width, 2) && feedrate == move.feedrate && fan_speed == move.fan_speed &&
|
||||||
volumetric_rate == round_to_nearest(move.volumetric_rate(), 2) && extruder_id == move.extruder_id &&
|
volumetric_rate == round_to_nearest(move.volumetric_rate(), 2) && extruder_id == move.extruder_id &&
|
||||||
cp_color_id == move.cp_color_id;
|
cp_color_id == move.cp_color_id;
|
||||||
}
|
}
|
||||||
case EMoveType::Travel:
|
case EMoveType::Travel: {
|
||||||
{
|
|
||||||
return type == move.type && feedrate == move.feedrate && extruder_id == move.extruder_id && cp_color_id == move.cp_color_id;
|
return type == move.type && feedrate == move.feedrate && extruder_id == move.extruder_id && cp_color_id == move.cp_color_id;
|
||||||
}
|
}
|
||||||
default: { return false; }
|
default: { return false; }
|
||||||
|
@ -1531,14 +1529,15 @@ void GCodeViewer::load_toolpaths(const GCodeProcessor::Result& gcode_result)
|
||||||
// dismiss indices data, no more needed
|
// dismiss indices data, no more needed
|
||||||
std::vector<MultiIndexBuffer>().swap(indices);
|
std::vector<MultiIndexBuffer>().swap(indices);
|
||||||
|
|
||||||
// layers zs / roles / extruder ids / cp color ids -> extract from result
|
// layers zs -> extract from result
|
||||||
|
for (const Path& path : m_buffers[buffer_id(EMoveType::Extrude)].paths) {
|
||||||
|
m_layers_zs.emplace_back(static_cast<double>(path.first.position[2]));
|
||||||
|
// m_layers_zs.emplace_back(static_cast<double>(path.last.position[2]));
|
||||||
|
}
|
||||||
|
// roles / extruder ids / cp color ids -> extract from result
|
||||||
for (size_t i = 0; i < m_moves_count; ++i) {
|
for (size_t i = 0; i < m_moves_count; ++i) {
|
||||||
const GCodeProcessor::MoveVertex& move = gcode_result.moves[i];
|
const GCodeProcessor::MoveVertex& move = gcode_result.moves[i];
|
||||||
if (move.type == EMoveType::Extrude)
|
|
||||||
m_layers_zs.emplace_back(static_cast<double>(move.position[2]));
|
|
||||||
|
|
||||||
m_extruder_ids.emplace_back(move.extruder_id);
|
m_extruder_ids.emplace_back(move.extruder_id);
|
||||||
|
|
||||||
if (i > 0)
|
if (i > 0)
|
||||||
m_roles.emplace_back(move.extrusion_role);
|
m_roles.emplace_back(move.extrusion_role);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue